接口 ReloadableResourceManager

  • 所有超级接口:
    AutoCloseable, ResourceFactory, ResourceManager
    所有已知实现类:
    ReloadableResourceManagerImpl

    public interface ReloadableResourceManager
    extends ResourceManager, AutoCloseable
    A resource manager that has a reload mechanism. Reloading allows reloaders to update when resources change. Accessing resources in reloads can reduce impact on game performance as well.

    In each reload, all reloaders in this resource manager will have their reload called.

    另请参阅:
    ResourceReloader
    Mappings:
    Namespace Name
    official adj
    intermediary net/minecraft/class_3296
    named net/minecraft/resource/ReloadableResourceManager
    • 方法详细资料

      • reload

        default CompletableFuture<Unit> reload​(Executor prepareExecutor,
                                               Executor applyExecutor,
                                               List<ResourcePack> packs,
                                               CompletableFuture<Unit> initialStage)
        Performs a reload. This returns a future that is completed when the reload is completed.
        参数:
        prepareExecutor - an executor for the prepare stage
        applyExecutor - an executor for the apply stage
        packs - a list of resource packs providing resources
        initialStage - a completable future to be completed before this reload
        返回:
        the future of the reload
        另请参阅:
        reload(Executor, Executor, CompletableFuture, List)
        Mappings:
        Namespace Name Mixin selector
        official a Ladj;a(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/List;Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_14478 Lnet/minecraft/class_3296;method_14478(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/List;Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
        named reload Lnet/minecraft/resource/ReloadableResourceManager;reload(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/List;Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
      • registerReloader

        void registerReloader​(ResourceReloader reloader)
        Registers a resource reloader to this manager.
        参数:
        reloader - the reloader
        Mappings:
        Namespace Name Mixin selector
        official a Ladj;a(Ladg;)V
        intermediary method_14477 Lnet/minecraft/class_3296;method_14477(Lnet/minecraft/class_3302;)V
        named registerReloader Lnet/minecraft/resource/ReloadableResourceManager;registerReloader(Lnet/minecraft/resource/ResourceReloader;)V
      • close

        void close()
        指定者:
        close 在接口中 AutoCloseable
        Mappings:
        Namespace Name Mixin selector
        official close Ladj;close()V
        intermediary close Lnet/minecraft/class_3296;close()V
        named close Lnet/minecraft/resource/ReloadableResourceManager;close()V