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() |
getGlTextureIdequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGlTextureIdpublic 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 TextureObjectIOExceptionpublic void loadTextureAtlas(ResourceManager par1ResourceManager)
public TextureAtlasSprite getAtlasSprite(String par1Str)
public void updateAnimations()
public Icon registerIcon(String par1Str)
registerIcon in interface IconRegisterpublic 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