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_,
IIconCreator iconCreatorIn) |
| 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, setBlurMipmapDirectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGlTextureId, restoreLastBlurMipmap, setBlurMipmappublic 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 void loadTexture(IResourceManager resourceManager) throws java.io.IOException
loadTexture in interface ITextureObjectjava.io.IOExceptionpublic 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