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
- Mappings:
Namespace Name official etpintermediary net/minecraft/class_1060named net/minecraft/client/texture/TextureManager
-
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>dynamicIdCountersprivate static LoggerLOGGERstatic IdentifierMISSING_IDENTIFIERprivate ResourceManagerresourceContainerprivate Map<Identifier,AbstractTexture>texturesprivate Set<TextureTickListener>tickListeners -
Constructor Summary
Constructors Constructor Description TextureManager(ResourceManager resourceManager) -
Method Summary
Modifier and Type Method Description voidbindTexture(Identifier id)private voidbindTextureInner(Identifier id)voidclose()private voidcloseTexture(Identifier id, AbstractTexture texture)voiddestroyTexture(Identifier id)AbstractTexturegetTexture(Identifier id)private AbstractTextureloadTexture(Identifier id, AbstractTexture texture)CompletableFuture<Void>loadTextureAsync(Identifier id, Executor executor)AbstractTexturemethod_34590(Identifier identifier, AbstractTexture abstractTexture)IdentifierregisterDynamicTexture(String prefix, NativeImageBackedTexture texture)voidregisterTexture(Identifier id, AbstractTexture texture)CompletableFuture<Void>reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)private static voidrunOnRenderThread(Runnable runnable)voidtick()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLetp;b:Lorg/apache/logging/log4j/Logger;intermediary field_5288Lnet/minecraft/class_1060;field_5288:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/texture/TextureManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MISSING_IDENTIFIER
- Mappings:
Namespace Name Mixin selector official aLetp;a:Lwl;intermediary field_5285Lnet/minecraft/class_1060;field_5285:Lnet/minecraft/class_2960;named MISSING_IDENTIFIERLnet/minecraft/client/texture/TextureManager;MISSING_IDENTIFIER:Lnet/minecraft/util/Identifier;
-
textures
- Mappings:
Namespace Name Mixin selector official cLetp;c:Ljava/util/Map;intermediary field_5286Lnet/minecraft/class_1060;field_5286:Ljava/util/Map;named texturesLnet/minecraft/client/texture/TextureManager;textures:Ljava/util/Map;
-
tickListeners
- Mappings:
Namespace Name Mixin selector official dLetp;d:Ljava/util/Set;intermediary field_5284Lnet/minecraft/class_1060;field_5284:Ljava/util/Set;named tickListenersLnet/minecraft/client/texture/TextureManager;tickListeners:Ljava/util/Set;
-
dynamicIdCounters
- Mappings:
Namespace Name Mixin selector official eLetp;e:Ljava/util/Map;intermediary field_5283Lnet/minecraft/class_1060;field_5283:Ljava/util/Map;named dynamicIdCountersLnet/minecraft/client/texture/TextureManager;dynamicIdCounters:Ljava/util/Map;
-
resourceContainer
- Mappings:
Namespace Name Mixin selector official fLetp;f:Ladh;intermediary field_5287Lnet/minecraft/class_1060;field_5287:Lnet/minecraft/class_3300;named resourceContainerLnet/minecraft/client/texture/TextureManager;resourceContainer:Lnet/minecraft/resource/ResourceManager;
-
-
Constructor Details
-
TextureManager
- Mappings:
Namespace Name Mixin selector official <init>Letp;<init>(Ladh;)Vintermediary <init>Lnet/minecraft/class_1060;<init>(Lnet/minecraft/class_3300;)Vnamed <init>Lnet/minecraft/client/texture/TextureManager;<init>(Lnet/minecraft/resource/ResourceManager;)V
-
-
Method Details
-
bindTexture
- Mappings:
Namespace Name Mixin selector official aLetp;a(Lwl;)Vintermediary method_22813Lnet/minecraft/class_1060;method_22813(Lnet/minecraft/class_2960;)Vnamed bindTextureLnet/minecraft/client/texture/TextureManager;bindTexture(Lnet/minecraft/util/Identifier;)V
-
bindTextureInner
- Mappings:
Namespace Name Mixin selector official dLetp;d(Lwl;)Vintermediary method_4618Lnet/minecraft/class_1060;method_4618(Lnet/minecraft/class_2960;)Vnamed bindTextureInnerLnet/minecraft/client/texture/TextureManager;bindTextureInner(Lnet/minecraft/util/Identifier;)V
-
registerTexture
- Mappings:
Namespace Name Mixin selector official aLetp;a(Lwl;Letc;)Vintermediary method_4616Lnet/minecraft/class_1060;method_4616(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Vnamed registerTextureLnet/minecraft/client/texture/TextureManager;registerTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)V
-
closeTexture
- Mappings:
Namespace Name Mixin selector official cLetp;c(Lwl;Letc;)Vintermediary method_30299Lnet/minecraft/class_1060;method_30299(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Vnamed closeTextureLnet/minecraft/client/texture/TextureManager;closeTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)V
-
loadTexture
- Mappings:
Namespace Name Mixin selector official dLetp;d(Lwl;Letc;)Letc;intermediary method_24303Lnet/minecraft/class_1060;method_24303(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Lnet/minecraft/class_1044;named loadTextureLnet/minecraft/client/texture/TextureManager;loadTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)Lnet/minecraft/client/texture/AbstractTexture;
-
getTexture
- Mappings:
Namespace Name Mixin selector official bLetp;b(Lwl;)Letc;intermediary method_4619Lnet/minecraft/class_1060;method_4619(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1044;named getTextureLnet/minecraft/client/texture/TextureManager;getTexture(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/AbstractTexture;
-
method_34590
- Mappings:
Namespace Name Mixin selector official bLetp;b(Lwl;Letc;)Letc;intermediary method_34590Lnet/minecraft/class_1060;method_34590(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Lnet/minecraft/class_1044;named method_34590Lnet/minecraft/client/texture/TextureManager;method_34590(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)Lnet/minecraft/client/texture/AbstractTexture;
-
registerDynamicTexture
- Mappings:
Namespace Name Mixin selector official aLetp;a(Ljava/lang/String;Lete;)Lwl;intermediary method_4617Lnet/minecraft/class_1060;method_4617(Ljava/lang/String;Lnet/minecraft/class_1043;)Lnet/minecraft/class_2960;named registerDynamicTextureLnet/minecraft/client/texture/TextureManager;registerDynamicTexture(Ljava/lang/String;Lnet/minecraft/client/texture/NativeImageBackedTexture;)Lnet/minecraft/util/Identifier;
-
loadTextureAsync
- Mappings:
Namespace Name Mixin selector official aLetp;a(Lwl;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_18168Lnet/minecraft/class_1060;method_18168(Lnet/minecraft/class_2960;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;named loadTextureAsyncLnet/minecraft/client/texture/TextureManager;loadTextureAsync(Lnet/minecraft/util/Identifier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
runOnRenderThread
- Mappings:
Namespace Name Mixin selector official aLetp;a(Ljava/lang/Runnable;)Vintermediary method_22812Lnet/minecraft/class_1060;method_22812(Ljava/lang/Runnable;)Vnamed runOnRenderThreadLnet/minecraft/client/texture/TextureManager;runOnRenderThread(Ljava/lang/Runnable;)V
-
tick
public void tick()- Specified by:
tickin interfaceTextureTickListener- Mappings:
Namespace Name Mixin selector official eLetq;e()Vintermediary method_4622Lnet/minecraft/class_1061;method_4622()Vnamed tickLnet/minecraft/client/texture/TextureTickListener;tick()V
-
destroyTexture
- Mappings:
Namespace Name Mixin selector official cLetp;c(Lwl;)Vintermediary method_4615Lnet/minecraft/class_1060;method_4615(Lnet/minecraft/class_2960;)Vnamed destroyTextureLnet/minecraft/client/texture/TextureManager;destroyTexture(Lnet/minecraft/util/Identifier;)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Mappings:
Namespace Name Mixin selector official closeLetp;close()Vintermediary closeLnet/minecraft/class_1060;close()Vnamed closeLnet/minecraft/client/texture/TextureManager;close()V
-
reload
public CompletableFuture<Void> reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)- Specified by:
reloadin interfaceResourceReloadListener- Mappings:
Namespace Name Mixin selector official aLadc;a(Ladc$a;Ladh;Lapl;Lapl;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_25931Lnet/minecraft/class_3302;method_25931(Lnet/minecraft/class_3302$class_4045;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;named reloadLnet/minecraft/resource/ResourceReloadListener;reload(Lnet/minecraft/resource/ResourceReloadListener$Synchronizer;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/util/profiler/Profiler;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-