public class TextureMap extends AbstractTexture implements ITickableTextureObject
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
LOCATION_BLOCKS_TEXTURE |
static ResourceLocation |
LOCATION_MISSING_TEXTURE |
blur, blurLast, glTextureId, mipmap, mipmapLast
Constructor and Description |
---|
TextureMap(java.lang.String basePathIn) |
TextureMap(java.lang.String basePathIn,
boolean skipFirst) |
TextureMap(java.lang.String basePathIn,
ITextureMapPopulator iconCreatorIn) |
TextureMap(java.lang.String basePathIn,
ITextureMapPopulator iconCreatorIn,
boolean skipFirst) |
Modifier and Type | Method and Description |
---|---|
TextureAtlasSprite |
getAtlasSprite(java.lang.String iconName) |
java.lang.String |
getBasePath() |
int |
getMipmapLevels() |
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,
ITextureMapPopulator iconCreatorIn) |
void |
loadTexture(IResourceManager resourceManager) |
void |
loadTextureAtlas(IResourceManager resourceManager) |
TextureAtlasSprite |
registerSprite(ResourceLocation location) |
void |
setMipmapLevels(int mipmapLevelsIn) |
boolean |
setTextureEntry(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 LOCATION_BLOCKS_TEXTURE
public TextureMap(java.lang.String basePathIn)
public TextureMap(java.lang.String basePathIn, @Nullable ITextureMapPopulator iconCreatorIn)
public TextureMap(java.lang.String basePathIn, boolean skipFirst)
public TextureMap(java.lang.String basePathIn, ITextureMapPopulator iconCreatorIn, boolean skipFirst)
public void loadTexture(IResourceManager resourceManager) throws java.io.IOException
loadTexture
in interface ITextureObject
java.io.IOException
public void loadSprites(IResourceManager resourceManager, ITextureMapPopulator iconCreatorIn)
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()
@Nullable public TextureAtlasSprite getTextureExtry(java.lang.String name)
name
- The name of the entry to findpublic boolean setTextureEntry(TextureAtlasSprite entry)
entry
- Entry instancepublic java.lang.String getBasePath()
public int getMipmapLevels()