net.minecraft.server.packs.resources

public class SimpleReloadInstance<S>

implements ReloadInstance

avj
net.minecraft.server.packs.resources.SimpleReloadInstance
net.minecraft.class_4014
net.minecraft.unmapped.C_nqsxthnh
net.minecraft.resource.SimpleResourceReload
net.minecraft.resource.SimpleResourceReload

Field summary

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

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(avd arg0, List<auw> arg1, Executor arg2, Executor arg3, CompletableFuture<bau> 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)
create(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)
public CompletableFuture<?>
a()
done()
method_18364()
m_dctqsnoh()
whenComplete()
whenComplete()
public float
b()
getActualProgress()
method_18229()
m_olsboeec()
getProgress()
getProgress()
public static ReloadInstance
a(avd arg0, List<auw> arg1, Executor arg2, Executor arg3, CompletableFuture<bau> arg4, boolean arg5)
create(ResourceManager arg0, List<PreparableReloadListener> arg1, Executor arg2, Executor arg3, CompletableFuture<Unit> arg4, boolean arg5)
method_40087(class_3300 arg0, List<class_3302> arg1, Executor arg2, Executor arg3, CompletableFuture<class_3902> arg4, boolean arg5)
m_obrutakb(C_tmnrpasf arg0, List<C_msqwzogj> arg1, Executor arg2, Executor arg3, CompletableFuture<C_djdmkjpx> arg4, boolean arg5)
start(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, boolean profiled)
create(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, boolean profiled)