Class ProfiledReloadInstance
java.lang.Object
net.minecraft.server.packs.resources.SimpleReloadInstance<ProfiledReloadInstance.State>
net.minecraft.server.packs.resources.ProfiledReloadInstance
- All Implemented Interfaces:
ReloadInstance
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class SimpleReloadInstance
SimpleReloadInstance.StateFactory<S> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateProfiledReloadInstance(List<PreparableReloadListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionprivate List<ProfiledReloadInstance.State> finish(List<ProfiledReloadInstance.State> result) static ReloadInstanceof(ResourceManager resourceManager, List<PreparableReloadListener> listeners, Executor taskExecutor, Executor mainThreadExecutor, CompletableFuture<Unit> initialTask) protected CompletableFuture<List<ProfiledReloadInstance.State>> prepareTasks(Executor taskExecutor, Executor mainThreadExecutor, ResourceManager resourceManager, List<PreparableReloadListener> listeners, SimpleReloadInstance.StateFactory<ProfiledReloadInstance.State> stateFactory, CompletableFuture<?> initialTask) private static ExecutorprofiledExecutor(Executor executor, AtomicLong accumulatedNanos, AtomicLong taskCount, String name) Methods inherited from class SimpleReloadInstance
create, done, getActualProgress, startTasksMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReloadInstance
checkExceptions, isDone
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
total
-
-
Constructor Details
-
ProfiledReloadInstance
-
-
Method Details
-
of
public static ReloadInstance of(ResourceManager resourceManager, List<PreparableReloadListener> listeners, Executor taskExecutor, Executor mainThreadExecutor, CompletableFuture<Unit> initialTask) -
prepareTasks
protected CompletableFuture<List<ProfiledReloadInstance.State>> prepareTasks(Executor taskExecutor, Executor mainThreadExecutor, ResourceManager resourceManager, List<PreparableReloadListener> listeners, SimpleReloadInstance.StateFactory<ProfiledReloadInstance.State> stateFactory, CompletableFuture<?> initialTask) - Overrides:
prepareTasksin classSimpleReloadInstance<ProfiledReloadInstance.State>
-
profiledExecutor
private static Executor profiledExecutor(Executor executor, AtomicLong accumulatedNanos, AtomicLong taskCount, String name) -
finish
-