public class TextureMap extends AbstractTexture implements ITickableTextureObject, IIconRegister
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
locationBlocksTexture |
static ResourceLocation |
locationItemsTexture |
glTextureId
Constructor and Description |
---|
TextureMap(int par1,
java.lang.String par2Str) |
Modifier and Type | Method and Description |
---|---|
TextureAtlasSprite |
getAtlasSprite(java.lang.String par1Str) |
TextureAtlasSprite |
getTextureExtry(java.lang.String name)
Grabs the registered entry for the specified name, returning null if there was not a entry.
|
int |
getTextureType() |
void |
loadTexture(IResourceManager par1ResourceManager) |
void |
loadTextureAtlas(IResourceManager par1ResourceManager) |
IIcon |
registerIcon(java.lang.String par1Str) |
void |
setAnisotropicFiltering(int p_147632_1_) |
void |
setMipmapLevels(int p_147633_1_) |
boolean |
setTextureEntry(java.lang.String name,
TextureAtlasSprite entry)
Adds a texture registry entry to this map for the specified name if one does not already exist.
|
void |
tick() |
void |
updateAnimations() |
deleteGlTexture, getGlTextureId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGlTextureId
public static final ResourceLocation locationBlocksTexture
public static final ResourceLocation locationItemsTexture
public void loadTexture(IResourceManager par1ResourceManager) throws java.io.IOException
loadTexture
in interface ITextureObject
java.io.IOException
public void loadTextureAtlas(IResourceManager par1ResourceManager)
public TextureAtlasSprite getAtlasSprite(java.lang.String par1Str)
public void updateAnimations()
public IIcon registerIcon(java.lang.String par1Str)
registerIcon
in interface IIconRegister
public int getTextureType()
public void setMipmapLevels(int p_147633_1_)
public void setAnisotropicFiltering(int p_147632_1_)
public TextureAtlasSprite getTextureExtry(java.lang.String name)
name
- The name of the entry to findpublic boolean setTextureEntry(java.lang.String name, TextureAtlasSprite entry)
name
- Entry nameentry
- Entry instance