net.minecraft.server.packs.resources

public class SimpleReloadInstance<S>

implements ReloadInstance

ady
net.minecraft.server.packs.resources.SimpleReloadInstance
net.minecraft.class_4014
net.minecraft.unmapped.C_nqsxthnh
net.minecraft.resource.SimpleResourceReload
net.minecraft.src.C_82_
net.minecraft.server.packs.resources.Reloadable

Field summary

Modifier and TypeField
private static final int
d
PREPARATION_PROGRESS_WEIGHT
field_29784
f_vkcaoqmt
FIRST_PREPARE_APPLY_WEIGHT
f_143937_
private static final int
e
EXTRA_RELOAD_PROGRESS_WEIGHT
field_29785
f_eaaormag
SECOND_PREPARE_APPLY_WEIGHT
f_143938_
private static final int
f
LISTENER_PROGRESS_WEIGHT
field_29786
f_dkgjrpsm
RELOADER_WEIGHT
f_143939_
protected final ResourceManager
a
resourceManager
field_17927
f_faeblktj
manager
f_10798_
protected final CompletableFuture<Unit>
b
allPreparations
field_18042
f_xhhrscjo
prepareStageFuture
f_10799_
protected final CompletableFuture<List<S>>
c
allDone
field_18043
f_bhanacfv
applyStageFuture
f_10800_
final Set<PreparableReloadListener>
g
preparingListeners
field_18044
f_mitzjbwz
waitingReloaders
f_10801_
private final int
h
listenerCount
field_18045
f_gfyktslg
reloaderCount
f_10802_
private int
i
startedReloads
field_18046
f_rzvuqgmk
toApplyCount
f_10803_
private int
j
finishedReloads
field_18047
f_hfilwdja
appliedCount
f_10804_
private final AtomicInteger
k
startedTaskCounter
field_18048
f_ppjrmgsm
toPrepareCount
f_10805_
private final AtomicInteger
l
doneTaskCounter
field_18049
f_rbkrnkfs
preparedCount
f_10806_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static SimpleReloadInstance<Void>
a(adt arg0, List<ado> arg1, Executor arg2, Executor arg3, CompletableFuture<ahm> 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)
m_fdirnkhq(C_tmnrpasf arg0, List<C_msqwzogj> arg1, Executor arg2, Executor arg3, CompletableFuture<C_djdmkjpx> arg4)
create(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)
m_10815_(C_77_ p_10816_, List<C_69_> p_10817_, Executor p_10818_, Executor p_10819_, CompletableFuture<C_204_> p_10820_)
public CompletableFuture<Unit>
a()
done()
method_18364()
m_dctqsnoh()
whenComplete()
m_7237_()
public float
b()
getActualProgress()
method_18229()
m_olsboeec()
getProgress()
m_7750_()
public boolean
c()
isDone()
method_18787()
m_kskknuzl()
isComplete()
m_7746_()
public void
d()
checkExceptions()
method_18849()
m_gesgbvtw()
throwException()
m_7748_()