Class SimpleReloadInstance<S>
java.lang.Object
net.minecraft.server.packs.resources.SimpleReloadInstance<S>
- All Implemented Interfaces:
- ReloadInstance
- Direct Known Subclasses:
- ProfiledReloadInstance
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CompletableFuture<List<S>>protected final CompletableFuture<Unit>private final AtomicIntegerprivate static final intprivate intprivate static final intprivate final intprivate static final int(package private) final Set<PreparableReloadListener>private intprivate final AtomicInteger
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSimpleReloadInstance(Executor p_10808_, Executor p_10809_, ResourceManager p_10810_, List<PreparableReloadListener> p_10811_, SimpleReloadInstance.StateFactory<S> p_10812_, CompletableFuture<Unit> p_10813_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ReloadInstancecreate(ResourceManager p_203835_, List<PreparableReloadListener> p_203836_, Executor p_203837_, Executor p_203838_, CompletableFuture<Unit> p_203839_, boolean p_203840_) done()floatstatic SimpleReloadInstance<Void>of(ResourceManager p_10816_, List<PreparableReloadListener> p_10817_, Executor p_10818_, Executor p_10819_, CompletableFuture<Unit> p_10820_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.ReloadInstancecheckExceptions, isDone
- 
Field Details- 
PREPARATION_PROGRESS_WEIGHTprivate static final int PREPARATION_PROGRESS_WEIGHT- See Also:
 
- 
EXTRA_RELOAD_PROGRESS_WEIGHTprivate static final int EXTRA_RELOAD_PROGRESS_WEIGHT- See Also:
 
- 
LISTENER_PROGRESS_WEIGHTprivate static final int LISTENER_PROGRESS_WEIGHT- See Also:
 
- 
allPreparations
- 
allDone
- 
preparingListeners
- 
listenerCountprivate final int listenerCount
- 
startedReloadsprivate int startedReloads
- 
finishedReloadsprivate int finishedReloads
- 
startedTaskCounter
- 
doneTaskCounter
 
- 
- 
Constructor Details- 
SimpleReloadInstanceprotected SimpleReloadInstance(Executor p_10808_, Executor p_10809_, ResourceManager p_10810_, List<PreparableReloadListener> p_10811_, SimpleReloadInstance.StateFactory<S> p_10812_, CompletableFuture<Unit> p_10813_) 
 
- 
- 
Method Details- 
ofpublic static SimpleReloadInstance<Void> of(ResourceManager p_10816_, List<PreparableReloadListener> p_10817_, Executor p_10818_, Executor p_10819_, CompletableFuture<Unit> p_10820_) 
- 
done- Specified by:
- donein interface- ReloadInstance
 
- 
getActualProgresspublic float getActualProgress()- Specified by:
- getActualProgressin interface- ReloadInstance
 
- 
createpublic static ReloadInstance create(ResourceManager p_203835_, List<PreparableReloadListener> p_203836_, Executor p_203837_, Executor p_203838_, CompletableFuture<Unit> p_203839_, boolean p_203840_) 
 
-