yarn/mappings/net/minecraft/resource/ReloadableResourceManagerIm...

28 lines
1.5 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_3304 net/minecraft/resource/ReloadableResourceManagerImpl
COMMENT A reloadable resource manager is always available to be accessed, and is the
COMMENT type used by the minecraft client instance. It has a backing {@linkplain
COMMENT #activeManager active resource manager} that it delegates to.
COMMENT
COMMENT <p>It starts with an empty active resource manager, and swaps the active
COMMENT resource manager whenever it {@linkplain #reload reloads}; in addition,
COMMENT {@linkplain #close closing} it will replace the active resource manager
COMMENT with an empty one, and the reloadable manager itself is still accessible to
COMMENT users, as opposed to the lifecycled resource manager.
2019-06-28 17:55:20 -04:00
FIELD field_14294 type Lnet/minecraft/class_3264;
2022-01-19 12:26:32 -05:00
FIELD field_14295 LOGGER Lorg/slf4j/Logger;
FIELD field_17935 reloaders Ljava/util/List;
FIELD field_36391 activeManager Lnet/minecraft/class_6860;
2020-05-29 09:31:34 -04:00
METHOD <init> (Lnet/minecraft/class_3264;)V
ARG 1 type
2022-02-09 13:58:35 -05:00
METHOD method_14477 registerReloader (Lnet/minecraft/class_3302;)V
COMMENT Registers a reloader to all future reloads on this resource
COMMENT manager.
ARG 1 reloader
2022-02-09 13:58:35 -05:00
METHOD method_18232 reload (Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;Ljava/util/List;)Lnet/minecraft/class_4011;
COMMENT Swaps the active resource manager with another one backed by the given
COMMENT {@code packs} and start a {@linkplain SimpleResourceReload#start reload}.
ARG 1 prepareExecutor
ARG 2 applyExecutor
ARG 3 initialStage
ARG 4 packs