类 TagManagerLoader

  • 所有已实现的接口:
    ResourceReloader

    public class TagManagerLoader
    extends Object
    implements ResourceReloader
    Mappings:
    Namespace Name
    official afw
    intermediary net/minecraft/class_3505
    named net/minecraft/tag/TagManagerLoader
    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official a Lafw;a:Lorg/apache/logging/log4j/Logger;
        intermediary field_28311 Lnet/minecraft/class_3505;field_28311:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/tag/TagManagerLoader;LOGGER:Lorg/apache/logging/log4j/Logger;
      • registryManager

        private final DynamicRegistryManager registryManager
        Mappings:
        Namespace Name Mixin selector
        official b Lafw;b:Lgs;
        intermediary field_28312 Lnet/minecraft/class_3505;field_28312:Lnet/minecraft/class_5455;
        named registryManager Lnet/minecraft/tag/TagManagerLoader;registryManager:Lnet/minecraft/util/registry/DynamicRegistryManager;
      • tagManager

        private TagManager tagManager
        Mappings:
        Namespace Name Mixin selector
        official c Lafw;c:Lafu;
        intermediary field_25749 Lnet/minecraft/class_3505;field_25749:Lnet/minecraft/class_5415;
        named tagManager Lnet/minecraft/tag/TagManagerLoader;tagManager:Lnet/minecraft/tag/TagManager;
    • 构造器详细资料

      • TagManagerLoader

        public TagManagerLoader​(DynamicRegistryManager registryManager)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lafw;<init>(Lgs;)V
        intermediary <init> Lnet/minecraft/class_3505;<init>(Lnet/minecraft/class_5455;)V
        named <init> Lnet/minecraft/tag/TagManagerLoader;<init>(Lnet/minecraft/util/registry/DynamicRegistryManager;)V
    • 方法详细资料

      • getTagManager

        public TagManager getTagManager()
        Mappings:
        Namespace Name Mixin selector
        official a Lafw;a()Lafu;
        intermediary method_30223 Lnet/minecraft/class_3505;method_30223()Lnet/minecraft/class_5415;
        named getTagManager Lnet/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 of thenAcceptAsync.

        指定者:
        reload 在接口中 ResourceReloader
        参数:
        synchronizer - the synchronizer
        manager - the resource manager
        prepareProfiler - the profiler for prepare stage
        applyProfiler - the profiler for apply stage
        prepareExecutor - the executor for prepare stage
        applyExecutor - the executor for apply stage
        返回:
        a future for the reload
        另请参阅:
        ReloadableResourceManager.reload(Executor, Executor, CompletableFuture, List)
        Mappings:
        Namespace Name Mixin selector
        official a Ladg;a(Ladg$a;Ladl;Lapl;Lapl;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;
        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;
      • buildRequiredGroup

        @Nullable
        private <T> @Nullable TagManagerLoader.RequiredGroup<T> buildRequiredGroup​(ResourceManager resourceManager,
                                                                                   Executor prepareExecutor,
                                                                                   RequiredTagList<T> requirement)
        Mappings:
        Namespace Name Mixin selector
        official a Lafw;a(Ladl;Ljava/util/concurrent/Executor;Lafq;)Lafw$a;
        intermediary method_33178 Lnet/minecraft/class_3505;method_33178(Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;Lnet/minecraft/class_5120;)Lnet/minecraft/class_3505$class_5751;
        named buildRequiredGroup Lnet/minecraft/tag/TagManagerLoader;buildRequiredGroup(Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;Lnet/minecraft/tag/RequiredTagList;)Lnet/minecraft/tag/TagManagerLoader$RequiredGroup;