public class TextureMap extends AbstractTexture implements TickableTextureObject, IconRegister
Modifier and Type | Field and Description |
---|---|
String |
basePath |
static ResourceLocation |
locationBlocksTexture |
static ResourceLocation |
locationItemsTexture |
int |
textureType
0 = terrain.png, 1 = items.png
|
Constructor and Description |
---|
TextureMap(int par1,
String par2Str) |
Modifier and Type | Method and Description |
---|---|
TextureAtlasSprite |
getAtlasSprite(String par1Str) |
TextureAtlasSprite |
getTextureExtry(String name)
Grabs the registered entry for the specified name, returning null if there was not a entry.
|
int |
getTextureType() |
void |
loadTexture(ResourceManager par1ResourceManager) |
void |
loadTextureAtlas(ResourceManager par1ResourceManager) |
Icon |
registerIcon(String par1Str) |
boolean |
setTextureEntry(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() |
getGlTextureId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGlTextureId
public static final ResourceLocation locationBlocksTexture
public static final ResourceLocation locationItemsTexture
public final int textureType
public final String basePath
public TextureMap(int par1, String par2Str)
public void loadTexture(ResourceManager par1ResourceManager) throws IOException
loadTexture
in interface TextureObject
IOException
public void loadTextureAtlas(ResourceManager par1ResourceManager)
public TextureAtlasSprite getAtlasSprite(String par1Str)
public void updateAnimations()
public Icon registerIcon(String par1Str)
registerIcon
in interface IconRegister
public int getTextureType()
public TextureAtlasSprite getTextureExtry(String name)
name
- The name of the entry to findpublic boolean setTextureEntry(String name, TextureAtlasSprite entry)
name
- Entry nameentry
- Entry instance