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 p_i1281_1_,
java.lang.String p_i1281_2_) |
Modifier and Type | Method and Description |
---|---|
TextureAtlasSprite |
getAtlasSprite(java.lang.String p_110572_1_) |
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 p_110551_1_) |
void |
loadTextureAtlas(IResourceManager p_110571_1_) |
IIcon |
registerIcon(java.lang.String p_94245_1_) |
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 p_110551_1_) throws java.io.IOException
loadTexture
in interface ITextureObject
java.io.IOException
public void loadTextureAtlas(IResourceManager p_110571_1_)
public TextureAtlasSprite getAtlasSprite(java.lang.String p_110572_1_)
public void updateAnimations()
public IIcon registerIcon(java.lang.String p_94245_1_)
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