Package net.minecraft.tag
Class TagManagerLoader
java.lang.Object
net.minecraft.tag.TagManagerLoader
- All Implemented Interfaces:
ResourceReloader
- Mappings:
Namespace Name official ageintermediary net/minecraft/class_3505named net/minecraft/tag/TagManagerLoader
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Loggerprivate DynamicRegistryManagerprivate TagManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> @Nullable TagManagerLoader.RequiredGroup<T>buildRequiredGroup(ResourceManager resourceManager, Executor prepareExecutor, RequiredTagList<T> requirement)reload(ResourceReloader.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)Performs a reload.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 official aLage;a:Lorg/apache/logging/log4j/Logger;intermediary field_28311Lnet/minecraft/class_3505;field_28311:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/tag/TagManagerLoader;LOGGER:Lorg/apache/logging/log4j/Logger;
-
registryManager
- Mappings:
Namespace Name Mixin selector official bLage;b:Lgx;intermediary field_28312Lnet/minecraft/class_3505;field_28312:Lnet/minecraft/class_5455;named registryManagerLnet/minecraft/tag/TagManagerLoader;registryManager:Lnet/minecraft/util/registry/DynamicRegistryManager;
-
tagManager
- Mappings:
Namespace Name Mixin selector official cLage;c:Lagc;intermediary field_25749Lnet/minecraft/class_3505;field_25749:Lnet/minecraft/class_5415;named tagManagerLnet/minecraft/tag/TagManagerLoader;tagManager:Lnet/minecraft/tag/TagManager;
-
-
Constructor Details
-
TagManagerLoader
- Mappings:
Namespace Name Mixin selector official <init>Lage;<init>(Lgx;)Vintermediary <init>Lnet/minecraft/class_3505;<init>(Lnet/minecraft/class_5455;)Vnamed <init>Lnet/minecraft/tag/TagManagerLoader;<init>(Lnet/minecraft/util/registry/DynamicRegistryManager;)V
-
-
Method Details
-
getTagManager
- Mappings:
Namespace Name Mixin selector official aLage;a()Lagc;intermediary method_30223Lnet/minecraft/class_3505;method_30223()Lnet/minecraft/class_5415;named getTagManagerLnet/minecraft/tag/TagManagerLoader;getTagManager()Lnet/minecraft/tag/TagManager;
-
reload
public CompletableFuture<Void> reload(ResourceReloader.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, 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 managerprepareProfiler- the profiler for prepare stageapplyProfiler- the profiler for apply stageprepareExecutor- the executor for prepare stageapplyExecutor- the executor for apply stage- Returns:
- a future for the reload
- See Also:
ReloadableResourceManager.reload(Executor, Executor, CompletableFuture, List)- Mappings:
Namespace Name Mixin selector official aLado;a(Lado$a;Ladt;Lapu;Lapu;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/ResourceReloader;reload(Lnet/minecraft/resource/ResourceReloader$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;
-
buildRequiredGroup
@Nullable private <T> @Nullable TagManagerLoader.RequiredGroup<T> buildRequiredGroup(ResourceManager resourceManager, Executor prepareExecutor, RequiredTagList<T> requirement)- Mappings:
Namespace Name Mixin selector official aLage;a(Ladt;Ljava/util/concurrent/Executor;Lafy;)Lage$a;intermediary method_33178Lnet/minecraft/class_3505;method_33178(Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;Lnet/minecraft/class_5120;)Lnet/minecraft/class_3505$class_5751;named buildRequiredGroupLnet/minecraft/tag/TagManagerLoader;buildRequiredGroup(Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;Lnet/minecraft/tag/RequiredTagList;)Lnet/minecraft/tag/TagManagerLoader$RequiredGroup;
-