Package net.minecraft.registry.tag
Class TagManagerLoader
java.lang.Object
net.minecraft.registry.tag.TagManagerLoader
- All Implemented Interfaces:
ResourceReloader
- Mappings:
Namespace Name named net/minecraft/registry/tag/TagManagerLoader
intermediary net/minecraft/class_3505
official axh
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map
<RegistryKey<? extends Registry<?>>, String> private final DynamicRegistryManager
private List
<TagManagerLoader.RegistryTags<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <T> CompletableFuture
<TagManagerLoader.RegistryTags<T>> buildRequiredGroup
(ResourceManager resourceManager, Executor prepareExecutor, DynamicRegistryManager.Entry<T> requirement) static String
getPath
(RegistryKey<? extends Registry<?>> registry) 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, wait
Methods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
DIRECTORIES
- Mappings:
Namespace Name Mixin selector named DIRECTORIES
Lnet/minecraft/registry/tag/TagManagerLoader;DIRECTORIES:Ljava/util/Map;
intermediary field_36395
Lnet/minecraft/class_3505;field_36395:Ljava/util/Map;
official a
Laxh;a:Ljava/util/Map;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManager
Lnet/minecraft/registry/tag/TagManagerLoader;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;
intermediary field_28312
Lnet/minecraft/class_3505;field_28312:Lnet/minecraft/class_5455;
official b
Laxh;b:Ljw;
-
registryTags
- Mappings:
Namespace Name Mixin selector named registryTags
Lnet/minecraft/registry/tag/TagManagerLoader;registryTags:Ljava/util/List;
intermediary field_36396
Lnet/minecraft/class_3505;field_36396:Ljava/util/List;
official c
Laxh;c:Ljava/util/List;
-
-
Constructor Details
-
TagManagerLoader
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/registry/tag/TagManagerLoader;<init>(Lnet/minecraft/registry/DynamicRegistryManager;)V
intermediary <init>
Lnet/minecraft/class_3505;<init>(Lnet/minecraft/class_5455;)V
official <init>
Laxh;<init>(Ljw;)V
-
-
Method Details
-
getRegistryTags
- Mappings:
Namespace Name Mixin selector named getRegistryTags
Lnet/minecraft/registry/tag/TagManagerLoader;getRegistryTags()Ljava/util/List;
intermediary method_40096
Lnet/minecraft/class_3505;method_40096()Ljava/util/List;
official a
Laxh;a()Ljava/util/List;
-
getPath
- Mappings:
Namespace Name Mixin selector named getPath
Lnet/minecraft/registry/tag/TagManagerLoader;getPath(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/String;
intermediary method_40099
Lnet/minecraft/class_3505;method_40099(Lnet/minecraft/class_5321;)Ljava/lang/String;
official a
Laxh;a(Lale;)Ljava/lang/String;
-
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:
reload
in 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:
- Mappings:
Namespace Name Mixin selector named reload
Lnet/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;
intermediary method_25931
Lnet/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;
official a
Lauj;a(Lauj$a;Laup;Lbnj;Lbnj;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
buildRequiredGroup
private <T> CompletableFuture<TagManagerLoader.RegistryTags<T>> buildRequiredGroup(ResourceManager resourceManager, Executor prepareExecutor, DynamicRegistryManager.Entry<T> requirement) - Mappings:
Namespace Name Mixin selector named buildRequiredGroup
Lnet/minecraft/registry/tag/TagManagerLoader;buildRequiredGroup(Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;Lnet/minecraft/registry/DynamicRegistryManager$Entry;)Ljava/util/concurrent/CompletableFuture;
intermediary method_33178
Lnet/minecraft/class_3505;method_33178(Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;Lnet/minecraft/class_5455$class_6892;)Ljava/util/concurrent/CompletableFuture;
official a
Laxh;a(Laup;Ljava/util/concurrent/Executor;Ljw$d;)Ljava/util/concurrent/CompletableFuture;
-