public class TextureManager extends java.lang.Object implements ITickable, IResourceManagerReloadListener
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
RESOURCE_LOCATION_EMPTY |
Constructor and Description |
---|
TextureManager(IResourceManager resourceManager) |
Modifier and Type | Method and Description |
---|---|
void |
bindTexture(ResourceLocation resource) |
void |
deleteTexture(ResourceLocation textureLocation) |
ResourceLocation |
getDynamicTextureLocation(java.lang.String name,
DynamicTexture texture) |
ITextureObject |
getTexture(ResourceLocation textureLocation) |
boolean |
loadTexture(ResourceLocation textureLocation,
ITextureObject textureObj) |
boolean |
loadTickableTexture(ResourceLocation textureLocation,
ITickableTextureObject textureObj) |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
tick() |
public static final ResourceLocation RESOURCE_LOCATION_EMPTY
public TextureManager(IResourceManager resourceManager)
public void bindTexture(ResourceLocation resource)
public boolean loadTickableTexture(ResourceLocation textureLocation, ITickableTextureObject textureObj)
public boolean loadTexture(ResourceLocation textureLocation, ITextureObject textureObj)
public ITextureObject getTexture(ResourceLocation textureLocation)
public ResourceLocation getDynamicTextureLocation(java.lang.String name, DynamicTexture texture)
public void deleteTexture(ResourceLocation textureLocation)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener