Package net.minecraft.client.texture
Class TextureManager
java.lang.Object
net.minecraft.client.texture.TextureManager
- All Implemented Interfaces:
AutoCloseable,TextureTickListener,ResourceReloader
@Environment(CLIENT)
public class TextureManager
extends Object
implements ResourceReloader, TextureTickListener, AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/texture/TextureManagerintermediary net/minecraft/class_1060official heo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerstatic final Identifierprivate final ResourceManagerprivate final Map<Identifier, AbstractTexture> private final Set<TextureTickListener> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidcloseTexture(Identifier id, AbstractTexture abstractTexture) voidvoiddumpDynamicTextures(Path path) private voidgetTexture(Identifier id) voidmethod_65875(Identifier identifier) voidmethod_65876(Identifier identifier, class_10537 class_10537) private static class_10539method_65877(ResourceManager resourceManager, Identifier identifier, class_10537 class_10537) private static TextureManager.class_10540method_65878(ResourceManager resourceManager, Identifier identifier, class_10537 class_10537, Executor executor) voidregisterTexture(Identifier id, AbstractTexture texture) reload(ResourceReloader.Synchronizer synchronizer, ResourceManager manager, Executor prepareExecutor, Executor applyExecutor) Performs a reload.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.ResourceReloader
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/texture/TextureManager;LOGGER:Lorg/slf4j/Logger;intermediary field_5288Lnet/minecraft/class_1060;field_5288:Lorg/slf4j/Logger;official bLheo;b:Lorg/slf4j/Logger;
-
MISSING_IDENTIFIER
- Mappings:
Namespace Name Mixin selector named MISSING_IDENTIFIERLnet/minecraft/client/texture/TextureManager;MISSING_IDENTIFIER:Lnet/minecraft/util/Identifier;intermediary field_5285Lnet/minecraft/class_1060;field_5285:Lnet/minecraft/class_2960;official aLheo;a:Laku;
-
textures
- Mappings:
Namespace Name Mixin selector named texturesLnet/minecraft/client/texture/TextureManager;textures:Ljava/util/Map;intermediary field_5286Lnet/minecraft/class_1060;field_5286:Ljava/util/Map;official cLheo;c:Ljava/util/Map;
-
tickListeners
- Mappings:
Namespace Name Mixin selector named tickListenersLnet/minecraft/client/texture/TextureManager;tickListeners:Ljava/util/Set;intermediary field_5284Lnet/minecraft/class_1060;field_5284:Ljava/util/Set;official dLheo;d:Ljava/util/Set;
-
resourceContainer
- Mappings:
Namespace Name Mixin selector named resourceContainerLnet/minecraft/client/texture/TextureManager;resourceContainer:Lnet/minecraft/resource/ResourceManager;intermediary field_5287Lnet/minecraft/class_1060;field_5287:Lnet/minecraft/class_3300;official eLheo;e:Lauo;
-
-
Constructor Details
-
TextureManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/TextureManager;<init>(Lnet/minecraft/resource/ResourceManager;)Vintermediary <init>Lnet/minecraft/class_1060;<init>(Lnet/minecraft/class_3300;)Vofficial <init>Lheo;<init>(Lauo;)V
-
-
Method Details
-
method_65876
- Mappings:
Namespace Name Mixin selector named method_65876Lnet/minecraft/client/texture/TextureManager;method_65876(Lnet/minecraft/util/Identifier;Lnet/minecraft/class_10537;)Vintermediary method_65876Lnet/minecraft/class_1060;method_65876(Lnet/minecraft/class_2960;Lnet/minecraft/class_10537;)Vofficial aLheo;a(Laku;Lhed;)V
-
method_65875
- Mappings:
Namespace Name Mixin selector named method_65875Lnet/minecraft/client/texture/TextureManager;method_65875(Lnet/minecraft/util/Identifier;)Vintermediary method_65875Lnet/minecraft/class_1060;method_65875(Lnet/minecraft/class_2960;)Vofficial aLheo;a(Laku;)V
-
registerTexture
- Mappings:
Namespace Name Mixin selector named registerTextureLnet/minecraft/client/texture/TextureManager;registerTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)Vintermediary method_4616Lnet/minecraft/class_1060;method_4616(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Vofficial aLheo;a(Laku;Lhdx;)V
-
closeTexture
- Mappings:
Namespace Name Mixin selector named closeTextureLnet/minecraft/client/texture/TextureManager;closeTexture(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/AbstractTexture;)Vintermediary method_30299Lnet/minecraft/class_1060;method_30299(Lnet/minecraft/class_2960;Lnet/minecraft/class_1044;)Vofficial bLheo;b(Laku;Lhdx;)V
-
getTexture
- Mappings:
Namespace Name Mixin selector named getTextureLnet/minecraft/client/texture/TextureManager;getTexture(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/AbstractTexture;intermediary method_4619Lnet/minecraft/class_1060;method_4619(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1044;official bLheo;b(Laku;)Lhdx;
-
tick
public void tick()- Specified by:
tickin interfaceTextureTickListener- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/texture/TextureTickListener;tick()Vintermediary method_4622Lnet/minecraft/class_1061;method_4622()Vofficial fLhep;f()V
-
destroyTexture
- Mappings:
Namespace Name Mixin selector named destroyTextureLnet/minecraft/client/texture/TextureManager;destroyTexture(Lnet/minecraft/util/Identifier;)Vintermediary method_4615Lnet/minecraft/class_1060;method_4615(Lnet/minecraft/class_2960;)Vofficial cLheo;c(Laku;)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
reload
public CompletableFuture<Void> reload(ResourceReloader.Synchronizer synchronizer, ResourceManager manager, Executor prepareExecutor, Executor applyExecutor) Performs a reload. Returns a future that is completed when the reload is completed.In a reload, there is a prepare stage and an apply stage. For the prepare stage, you should create completable futures with CompletableFuture.supplyAsync(..., prepareExecutor) to ensure the prepare actions are done with the prepare executor. Then, you should have a completable future for all the prepared actions, and call combinedPrepare.thenCompose(synchronizer::waitFor) to notify the
synchronizer. Finally, you should run CompletableFuture.thenAcceptAsync(..., applyExecutor) for apply actions. In the end, returns the result ofthenAcceptAsync.- Specified by:
reloadin interfaceResourceReloader- Parameters:
synchronizer- the synchronizermanager- the resource manager- Returns:
- a future for the reload
- See Also:
- Mappings:
Namespace Name Mixin selector named reloadLnet/minecraft/resource/ResourceReloader;reload(Lnet/minecraft/resource/ResourceReloader$Synchronizer;Lnet/minecraft/resource/ResourceManager;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;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;official aLaui;a(Laui$a;Lauo;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
dumpDynamicTextures
- Mappings:
Namespace Name Mixin selector named dumpDynamicTexturesLnet/minecraft/client/texture/TextureManager;dumpDynamicTextures(Ljava/nio/file/Path;)Vintermediary method_49715Lnet/minecraft/class_1060;method_49715(Ljava/nio/file/Path;)Vofficial aLheo;a(Ljava/nio/file/Path;)V
-
dumpDynamicTexturesInternal
- Mappings:
Namespace Name Mixin selector named dumpDynamicTexturesInternalLnet/minecraft/client/texture/TextureManager;dumpDynamicTexturesInternal(Ljava/nio/file/Path;)Vintermediary method_49717Lnet/minecraft/class_1060;method_49717(Ljava/nio/file/Path;)Vofficial bLheo;b(Ljava/nio/file/Path;)V
-
method_65877
private static class_10539 method_65877(ResourceManager resourceManager, Identifier identifier, class_10537 class_10537) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named method_65877Lnet/minecraft/client/texture/TextureManager;method_65877(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;Lnet/minecraft/class_10537;)Lnet/minecraft/class_10539;intermediary method_65877Lnet/minecraft/class_1060;method_65877(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;Lnet/minecraft/class_10537;)Lnet/minecraft/class_10539;official aLheo;a(Lauo;Laku;Lhed;)Lhen;
-
method_65878
private static TextureManager.class_10540 method_65878(ResourceManager resourceManager, Identifier identifier, class_10537 class_10537, Executor executor) - Mappings:
Namespace Name Mixin selector named method_65878Lnet/minecraft/client/texture/TextureManager;method_65878(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;Lnet/minecraft/class_10537;Ljava/util/concurrent/Executor;)Lnet/minecraft/client/texture/TextureManager$class_10540;intermediary method_65878Lnet/minecraft/class_1060;method_65878(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;Lnet/minecraft/class_10537;Ljava/util/concurrent/Executor;)Lnet/minecraft/class_1060$class_10540;official aLheo;a(Lauo;Laku;Lhed;Ljava/util/concurrent/Executor;)Lheo$a;
-