public class TextureMap extends AbstractTexture implements ITickableTextureObject
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
basePath |
private IIconCreator |
iconCreator |
private java.util.List<TextureAtlasSprite> |
listAnimatedSprites |
static ResourceLocation |
LOCATION_MISSING_TEXTURE |
static ResourceLocation |
locationBlocksTexture |
private static org.apache.logging.log4j.Logger |
logger |
private java.util.Map<java.lang.String,TextureAtlasSprite> |
mapRegisteredSprites |
private java.util.Map<java.lang.String,TextureAtlasSprite> |
mapUploadedSprites |
private int |
mipmapLevels |
private TextureAtlasSprite |
missingImage |
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 |
---|---|
private ResourceLocation |
completeResourceLocation(ResourceLocation location,
int p_147634_2_) |
TextureAtlasSprite |
getAtlasSprite(java.lang.String iconName) |
TextureAtlasSprite |
getMissingSprite() |
private void |
initMissingImage() |
void |
loadSprites(IResourceManager resourceManager,
IIconCreator p_174943_2_) |
void |
loadTexture(IResourceManager resourceManager) |
void |
loadTextureAtlas(IResourceManager resourceManager) |
TextureAtlasSprite |
registerSprite(ResourceLocation location) |
void |
setMipmapLevels(int mipmapLevelsIn) |
void |
tick() |
void |
updateAnimations() |
deleteGlTexture, getGlTextureId, restoreLastBlurMipmap, setBlurMipmap, setBlurMipmapDirect
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGlTextureId, restoreLastBlurMipmap, setBlurMipmap
private static final org.apache.logging.log4j.Logger logger
public static final ResourceLocation LOCATION_MISSING_TEXTURE
public static final ResourceLocation locationBlocksTexture
private final java.util.List<TextureAtlasSprite> listAnimatedSprites
private final java.util.Map<java.lang.String,TextureAtlasSprite> mapRegisteredSprites
private final java.util.Map<java.lang.String,TextureAtlasSprite> mapUploadedSprites
private final java.lang.String basePath
private final IIconCreator iconCreator
private int mipmapLevels
private final TextureAtlasSprite missingImage
public TextureMap(java.lang.String p_i46099_1_)
public TextureMap(java.lang.String p_i46100_1_, IIconCreator iconCreatorIn)
private void initMissingImage()
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)
private ResourceLocation completeResourceLocation(ResourceLocation location, int p_147634_2_)
public TextureAtlasSprite getAtlasSprite(java.lang.String iconName)
public void updateAnimations()
public TextureAtlasSprite registerSprite(ResourceLocation location)
public void setMipmapLevels(int mipmapLevelsIn)
public TextureAtlasSprite getMissingSprite()