public class TextureManager extends java.lang.Object implements ITickable, IFutureReloadListener
IFutureReloadListener.IStage
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) |
java.util.concurrent.CompletableFuture<java.lang.Void> |
loadAsync(ResourceLocation textureLocation,
java.util.concurrent.Executor executor) |
boolean |
loadTexture(ResourceLocation textureLocation,
ITextureObject textureObj) |
boolean |
loadTickableTexture(ResourceLocation textureLocation,
ITickableTextureObject textureObj) |
java.util.concurrent.CompletableFuture<java.lang.Void> |
reload(IFutureReloadListener.IStage stage,
IResourceManager resourceManager,
IProfiler preparationsProfiler,
IProfiler reloadProfiler,
java.util.concurrent.Executor backgroundExecutor,
java.util.concurrent.Executor gameExecutor) |
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 java.util.concurrent.CompletableFuture<java.lang.Void> loadAsync(ResourceLocation textureLocation, java.util.concurrent.Executor executor)
public void deleteTexture(ResourceLocation textureLocation)
public java.util.concurrent.CompletableFuture<java.lang.Void> reload(IFutureReloadListener.IStage stage, IResourceManager resourceManager, IProfiler preparationsProfiler, IProfiler reloadProfiler, java.util.concurrent.Executor backgroundExecutor, java.util.concurrent.Executor gameExecutor)
reload
in interface IFutureReloadListener