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 net.minecraft.server.packs.resources.SimpleReloadInstance
SimpleReloadInstance.StateFactory<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final com.google.common.base.Stopwatch
Fields inherited from class net.minecraft.server.packs.resources.SimpleReloadInstance
allPreparations, preparingListeners
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ProfiledReloadInstance
(List<PreparableReloadListener> pListeners) -
Method Summary
Modifier and TypeMethodDescriptionprivate List
<ProfiledReloadInstance.State> finish
(List<ProfiledReloadInstance.State> p_215484_) static ReloadInstance
of
(ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, Executor pBackgroundExecutor, Executor pGameExecutor, CompletableFuture<Unit> pAlsoWaitedFor) protected CompletableFuture
<List<ProfiledReloadInstance.State>> prepareTasks
(Executor pBackgroundExecutor, Executor pGameExecutor, ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, SimpleReloadInstance.StateFactory<ProfiledReloadInstance.State> pStateFactory, CompletableFuture<?> pAlsoWaitedFor) private static Executor
profiledExecutor
(Executor pExecutor, AtomicLong pTimeTaken, AtomicLong pTimesRun, String pName) Methods inherited from class net.minecraft.server.packs.resources.SimpleReloadInstance
create, done, getActualProgress, startTasks
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.ReloadInstance
checkExceptions, isDone
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
total
private final com.google.common.base.Stopwatch total
-
-
Constructor Details
-
ProfiledReloadInstance
-
-
Method Details
-
of
public static ReloadInstance of(ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, Executor pBackgroundExecutor, Executor pGameExecutor, CompletableFuture<Unit> pAlsoWaitedFor) -
prepareTasks
protected CompletableFuture<List<ProfiledReloadInstance.State>> prepareTasks(Executor pBackgroundExecutor, Executor pGameExecutor, ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, SimpleReloadInstance.StateFactory<ProfiledReloadInstance.State> pStateFactory, CompletableFuture<?> pAlsoWaitedFor) - Overrides:
prepareTasks
in classSimpleReloadInstance<ProfiledReloadInstance.State>
-
profiledExecutor
private static Executor profiledExecutor(Executor pExecutor, AtomicLong pTimeTaken, AtomicLong pTimesRun, String pName) -
finish
-