public class TextureMap extends Object implements IconRegister
Modifier and Type | Field and Description |
---|---|
String |
basePath |
String |
textureExt |
String |
textureName |
int |
textureType
0 = terrain.png, 1 = items.png
|
Constructor and Description |
---|
TextureMap(int par1,
String par2,
String par3Str,
BufferedImage par4BufferedImage) |
Modifier and Type | Method and Description |
---|---|
Icon |
getMissingIcon() |
Texture |
getTexture() |
TextureStitched |
getTextureExtry(String name)
Grabs the registered entry for the specified name, returning null if there was not a entry.
|
void |
refreshTextures() |
Icon |
registerIcon(String par1Str) |
boolean |
setTextureEntry(String name,
TextureStitched entry)
Adds a texture registry entry to this map for the specified name if one does not already exist.
|
void |
updateAnimations() |
public final int textureType
public final String textureName
public final String basePath
public final String textureExt
public TextureMap(int par1, String par2, String par3Str, BufferedImage par4BufferedImage)
public void refreshTextures()
public void updateAnimations()
public Texture getTexture()
public Icon registerIcon(String par1Str)
registerIcon
in interface IconRegister
public Icon getMissingIcon()
public TextureStitched getTextureExtry(String name)
name
- The name of the entry to findpublic boolean setTextureEntry(String name, TextureStitched entry)
name
- Entry nameentry
- Entry instance