public class TextureMap extends AbstractTexture implements ITickableTextureObject
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
LOCATION_MISSING_TEXTURE |
static ResourceLocation |
locationBlocksTexture |
blur, blurLast, glTextureId, mipmap, mipmapLast
Constructor and Description |
---|
TextureMap(java.lang.String p_i46099_1_) |
TextureMap(java.lang.String p_i46100_1_,
boolean skipFirst) |
TextureMap(java.lang.String p_i46100_1_,
IIconCreator iconCreatorIn) |
TextureMap(java.lang.String p_i46100_1_,
IIconCreator iconCreatorIn,
boolean skipFirst) |
Modifier and Type | Method and Description |
---|---|
TextureAtlasSprite |
getAtlasSprite(java.lang.String iconName) |
TextureAtlasSprite |
getMissingSprite() |
TextureAtlasSprite |
getTextureExtry(java.lang.String name)
Grabs the registered entry for the specified name, returning null if there was not a entry.
|
void |
loadSprites(IResourceManager resourceManager,
IIconCreator p_174943_2_) |
void |
loadTexture(IResourceManager resourceManager) |
void |
loadTextureAtlas(IResourceManager resourceManager) |
TextureAtlasSprite |
registerSprite(ResourceLocation location) |
void |
setMipmapLevels(int mipmapLevelsIn) |
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, restoreLastBlurMipmap, setBlurMipmap, setBlurMipmapDirect
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGlTextureId, restoreLastBlurMipmap, setBlurMipmap
public static final ResourceLocation LOCATION_MISSING_TEXTURE
public static final ResourceLocation locationBlocksTexture
public TextureMap(java.lang.String p_i46099_1_)
public TextureMap(java.lang.String p_i46100_1_, IIconCreator iconCreatorIn)
public TextureMap(java.lang.String p_i46100_1_, boolean skipFirst)
public TextureMap(java.lang.String p_i46100_1_, IIconCreator iconCreatorIn, boolean skipFirst)
public void loadTexture(IResourceManager resourceManager) throws java.io.IOException
loadTexture
in interface ITextureObject
java.io.IOException
public void loadSprites(IResourceManager resourceManager, IIconCreator p_174943_2_)
public void loadTextureAtlas(IResourceManager resourceManager)
public TextureAtlasSprite getAtlasSprite(java.lang.String iconName)
public void updateAnimations()
public TextureAtlasSprite registerSprite(ResourceLocation location)
public void setMipmapLevels(int mipmapLevelsIn)
public TextureAtlasSprite getMissingSprite()
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