Package net.minecraft.client.texture
Class TextureManager
java.lang.Object
net.minecraft.client.texture.TextureManager
- All Implemented Interfaces:
AutoCloseable
,TextureTickListener
,ResourceReloadListener
@Environment(CLIENT) public class TextureManager extends Object implements ResourceReloadListener, TextureTickListener, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
Fields Modifier and Type Field Description private Map<String,Integer>
dynamicIdCounters
private static Logger
LOGGER
static Identifier
MISSING_IDENTIFIER
private ResourceManager
resourceContainer
private Map<Identifier,AbstractTexture>
textures
private Set<TextureTickListener>
tickListeners
-
Constructor Summary
Constructors Constructor Description TextureManager(ResourceManager resourceManager)
-
Method Summary
Modifier and Type Method Description void
bindTexture(Identifier id)
private void
bindTextureInner(Identifier id)
void
close()
void
destroyTexture(Identifier id)
AbstractTexture
getTexture(Identifier id)
CompletableFuture<Void>
loadTextureAsync(Identifier id, Executor executor)
private AbstractTexture
method_24303(Identifier identifier, AbstractTexture abstractTexture)
private void
method_30299(Identifier identifier, AbstractTexture abstractTexture)
Identifier
registerDynamicTexture(String prefix, NativeImageBackedTexture texture)
void
registerTexture(Identifier identifier, AbstractTexture abstractTexture)
CompletableFuture<Void>
reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)
private static void
runOnRenderThread(Runnable runnable)
void
tick()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
LOGGER
-
MISSING_IDENTIFIER
-
textures
-
tickListeners
-
dynamicIdCounters
-
resourceContainer
-
-
Constructor Details
-
TextureManager
-
-
Method Details
-
bindTexture
-
bindTextureInner
-
registerTexture
-
method_30299
-
method_24303
-
getTexture
-
registerDynamicTexture
-
loadTextureAsync
-
runOnRenderThread
-
tick
public void tick()- Specified by:
tick
in interfaceTextureTickListener
-
destroyTexture
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
reload
public CompletableFuture<Void> reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)- Specified by:
reload
in interfaceResourceReloadListener
-