Class SimpleReloadInstance<S>
java.lang.Object
net.minecraft.server.packs.resources.SimpleReloadInstance<S>
- All Implemented Interfaces:
ReloadInstance
- Direct Known Subclasses:
ProfiledReloadInstance
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected CompletableFuture
<List<S>> protected final CompletableFuture
<Unit> private final AtomicInteger
private static final int
private int
private static final int
private final int
private static final int
(package private) final Set
<PreparableReloadListener> private int
private final AtomicInteger
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleReloadInstance
(Executor p_10808_, Executor p_10809_, ResourceManager p_10810_, List<PreparableReloadListener> p_10811_, SimpleReloadInstance.StateFactory<S> p_10812_, CompletableFuture<Unit> p_10813_) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReloadInstance
create
(ResourceManager p_203835_, List<PreparableReloadListener> p_203836_, Executor p_203837_, Executor p_203838_, CompletableFuture<Unit> p_203839_, boolean p_203840_) done()
float
static 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.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
-
PREPARATION_PROGRESS_WEIGHT
private static final int PREPARATION_PROGRESS_WEIGHT- See Also:
-
EXTRA_RELOAD_PROGRESS_WEIGHT
private static final int EXTRA_RELOAD_PROGRESS_WEIGHT- See Also:
-
LISTENER_PROGRESS_WEIGHT
private static final int LISTENER_PROGRESS_WEIGHT- See Also:
-
allPreparations
-
allDone
-
preparingListeners
-
listenerCount
private final int listenerCount -
startedReloads
private int startedReloads -
finishedReloads
private int finishedReloads -
startedTaskCounter
-
doneTaskCounter
-
-
Constructor Details
-
SimpleReloadInstance
protected 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
-
of
public static SimpleReloadInstance<Void> of(ResourceManager p_10816_, List<PreparableReloadListener> p_10817_, Executor p_10818_, Executor p_10819_, CompletableFuture<Unit> p_10820_) -
done
- Specified by:
done
in interfaceReloadInstance
-
getActualProgress
public float getActualProgress()- Specified by:
getActualProgress
in interfaceReloadInstance
-
create
public static ReloadInstance create(ResourceManager p_203835_, List<PreparableReloadListener> p_203836_, Executor p_203837_, Executor p_203838_, CompletableFuture<Unit> p_203839_, boolean p_203840_)
-