public class TextureManager extends java.lang.Object implements ITickable, IResourceManagerReloadListener
Modifier and Type | Field and Description |
---|---|
private java.util.List<ITickable> |
listTickables |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<java.lang.String,java.lang.Integer> |
mapTextureCounters |
private java.util.Map<ResourceLocation,ITextureObject> |
mapTextureObjects |
static ResourceLocation |
RESOURCE_LOCATION_EMPTY |
private IResourceManager |
resourceManager |
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() |
private static final org.apache.logging.log4j.Logger LOGGER
public static final ResourceLocation RESOURCE_LOCATION_EMPTY
private final java.util.Map<ResourceLocation,ITextureObject> mapTextureObjects
private final java.util.List<ITickable> listTickables
private final java.util.Map<java.lang.String,java.lang.Integer> mapTextureCounters
private final IResourceManager resourceManager
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