net.minecraft.server.packs.resources

public class SimpleReloadInstance<S>

implements ReloadInstance

abg
net.minecraft.server.packs.resources.SimpleReloadInstance
net.minecraft.class_4014
net.minecraft.resource.ResourceReloader
net.minecraft.resources.AsyncReloader
net.minecraft.server.v1_16_R1.Reloadable

Field summary

Modifier and TypeField
protected final ResourceManager
a
resourceManager
field_17927
manager
field_219565_a
protected final CompletableFuture<Unit>
b
allPreparations
field_18042
prepareStageFuture
field_219566_b
protected final CompletableFuture<List<S>>
c
allDone
field_18043
applyStageFuture
field_219567_c
private final Set<PreparableReloadListener>
d
preparingListeners
field_18044
waitingListeners
field_219568_d
private final int
e
listenerCount
field_18045
listenerCount
field_219569_e
private int
f
startedReloads
field_18046
applyingCount
field_219570_f
private int
g
finishedReloads
field_18047
appliedCount
field_219571_g
private final AtomicInteger
h
startedTaskCounter
field_18048
preparingCount
field_219572_h
private final AtomicInteger
i
doneTaskCounter
field_18049
preparedCount
field_219573_i

Constructor summary

ModifierConstructor
protected (Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<PreparableReloadListener> listeners, SimpleReloadInstance$StateFactory<S> creator, CompletableFuture<Unit> initialStage)

Method summary

Modifier and TypeMethod
public static SimpleReloadInstance<Void>
a(abc arg0, List<aax> arg1, Executor arg2, Executor arg3, CompletableFuture<ael> arg4)
of(ResourceManager arg0, List<PreparableReloadListener> arg1, Executor arg2, Executor arg3, CompletableFuture<Unit> arg4)
method_18369(class_3300 arg0, List<class_3302> arg1, Executor arg2, Executor arg3, CompletableFuture<class_3902> arg4)
create(ResourceManager manager, List<ResourceReloadListener> listeners, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)
func_219562_a(IResourceManager arg0, List<IFutureReloadListener> arg1, Executor arg2, Executor arg3, CompletableFuture<Unit> arg4)
public CompletableFuture<Unit>
a()
done()
method_18364()
whenComplete()
func_219552_a()
public float
b()
getActualProgress()
method_18229()
getProgress()
func_219555_b()
public boolean
c()
isApplying()
method_18786()
isPrepareStageComplete()
func_219553_c()
public boolean
d()
isDone()
method_18787()
isApplyStageComplete()
func_219554_d()
public void
e()
checkExceptions()
method_18849()
throwExceptions()
func_219556_e()