net.minecraft.resource

public class SimpleResourceReload<S>

implements ResourceReload

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

Field summary

Modifier and TypeField
private static final int
a
PREPARATION_PROGRESS_WEIGHT
field_29784
FIRST_PREPARE_APPLY_WEIGHT
f_vkcaoqmt
FIRST_PREPARE_APPLY_WEIGHT
f_143937_
private static final int
b
EXTRA_RELOAD_PROGRESS_WEIGHT
field_29785
SECOND_PREPARE_APPLY_WEIGHT
f_eaaormag
SECOND_PREPARE_APPLY_WEIGHT
f_143938_
private static final int
c
LISTENER_PROGRESS_WEIGHT
field_29786
RELOADER_WEIGHT
f_dkgjrpsm
RELOADER_WEIGHT
f_143939_
final CompletableFuture<Unit>
d
allPreparations
field_18042
prepareStageFuture
f_xhhrscjo
prepareStageFuture
f_10799_
private CompletableFuture<List<S>>
e
allDone
field_18043
applyStageFuture
f_bhanacfv
applyStageFuture
f_10800_
final Set<ResourceReloader>
f
preparingListeners
field_18044
waitingReloaders
f_mitzjbwz
waitingReloaders
f_10801_
private final int
g
listenerCount
field_18045
reloaderCount
f_gfyktslg
reloaderCount
f_10802_
private final AtomicInteger
h
startedTasks
field_18048
toPrepareCount
f_pvmlgrdr
toPrepareCount
f_382601_
private final AtomicInteger
i
finishedTasks
field_56609
preparedCount
f_xqdujjtj
preparedCount
f_382453_
private final AtomicInteger
j
startedReloads
field_18046
toApplyCount
f_rzvuqgmk
toApplyCount
f_10803_
private final AtomicInteger
k
finishedReloads
field_18047
appliedCount
f_hfilwdja
appliedCount
f_10804_

Constructor summary

ModifierConstructor
protected (List<ResourceReloader> waitingReloaders)

Method summary

Modifier and TypeMethod
public static ResourceReload
b(baz o, List<bat> o, Executor o, Executor o, CompletableFuture<bhr> o)
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<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)
m_fdirnkhq(C_tmnrpasf arg0, List<C_msqwzogj> arg1, Executor arg2, Executor arg3, CompletableFuture<C_djdmkjpx> arg4)
create(ResourceManager manager, List<ResourceReloader> reloaders, Executor preparer, Executor applier, 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_)
protected void
b(Executor o, Executor o, baz o, List<bat> o, bbf$a<S> o, CompletableFuture<?> arg5)
startTasks(Executor arg0, Executor arg1, ResourceManager arg2, List<PreparableReloadListener> arg3, SimpleReloadInstance$StateFactory<S> arg4, CompletableFuture<?> arg5)
method_67578(Executor arg0, Executor arg1, class_3300 arg2, List<class_3302> arg3, class_4014$class_4047<S> arg4, CompletableFuture<?> arg5)
start(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloader> reloaders, SimpleResourceReload$Factory<S> factory, CompletableFuture<?> initialStage)
m_ckbnwfwi(Executor arg0, Executor arg1, C_tmnrpasf arg2, List<C_msqwzogj> arg3, C_nqsxthnh$C_rrqbjnfe<S> arg4, CompletableFuture<?> arg5)
start(Executor preparer, Executor applier, ResourceManager manager, List<ResourceReloader> reloaders, SimpleResourceReload$Factory<S> factory, CompletableFuture<?> initialStage)
m_388319_(Executor p_395769_, Executor p_391611_, C_77_ p_395372_, List<C_69_> p_391348_, C_82_$C_84_<S> p_394852_, CompletableFuture<?> arg5)
protected CompletableFuture<List<S>>
a(Executor o, Executor o, baz o, List<bat> o, bbf$a<S> o, CompletableFuture<?> arg5)
prepareTasks(Executor arg0, Executor arg1, ResourceManager arg2, List<PreparableReloadListener> arg3, SimpleReloadInstance$StateFactory<S> arg4, CompletableFuture<?> arg5)
method_67571(Executor arg0, Executor arg1, class_3300 arg2, List<class_3302> arg3, class_4014$class_4047<S> arg4, CompletableFuture<?> arg5)
startAsync(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloader> reloaders, SimpleResourceReload$Factory<S> factory, CompletableFuture<?> initialStage)
m_crdmugvl(Executor arg0, Executor arg1, C_tmnrpasf arg2, List<C_msqwzogj> arg3, C_nqsxthnh$C_rrqbjnfe<S> arg4, CompletableFuture<?> arg5)
prepare(Executor preparer, Executor applier, ResourceManager manager, List<ResourceReloader> reloaders, SimpleResourceReload$Factory<S> factory, CompletableFuture<?> initialStage)
m_383927_(Executor p_395239_, Executor p_394670_, C_77_ p_397834_, List<C_69_> p_391359_, C_82_$C_84_<S> p_393207_, CompletableFuture<?> arg5)
private ResourceReloader$Synchronizer
a(bat o, CompletableFuture<?> o, Executor arg2)
createBarrierForListener(PreparableReloadListener arg0, CompletableFuture<?> arg1, Executor arg2)
method_67573(class_3302 arg0, CompletableFuture<?> arg1, Executor arg2)
createSynchronizer(ResourceReloader reloader, CompletableFuture<?> future, Executor applyExecutor)
m_fdbyxamt(C_msqwzogj arg0, CompletableFuture<?> arg1, Executor arg2)
createSynchronizer(ResourceReloader reloader, CompletableFuture<?> initialStage, Executor applier)
m_388947_(C_69_ p_394372_, CompletableFuture<?> p_391253_, Executor arg2)
public CompletableFuture<?>
a()
done()
method_18364()
whenComplete()
m_dctqsnoh()
whenComplete()
m_7237_()
public float
b()
getActualProgress()
method_18229()
getProgress()
m_olsboeec()
getProgress()
m_7750_()
private static int
a(int o, int o, int o)
weightProgress(int arg0, int arg1, int arg2)
method_67572(int arg0, int arg1, int arg2)
toWeighted(int prepare, int apply, int total)
m_farauret(int arg0, int arg1, int arg2)
getProgressFactor(int prepareCount, int applyCount, int reloaderCount)
m_388462_(int p_396182_, int p_395893_, int p_394193_)
public static ResourceReload
a(baz o, List<bat> o, Executor o, Executor o, CompletableFuture<bhr> o, boolean o)
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)
start(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, boolean profiled)
m_obrutakb(C_tmnrpasf arg0, List<C_msqwzogj> arg1, Executor arg2, Executor arg3, CompletableFuture<C_djdmkjpx> arg4, boolean arg5)
create(ResourceManager manager, List<ResourceReloader> reloaders, Executor preparer, Executor applier, CompletableFuture<Unit> initialStage, boolean profiled)
m_203834_(C_77_ p_203835_, List<C_69_> p_203836_, Executor p_203837_, Executor p_203838_, CompletableFuture<C_204_> p_203839_, boolean p_203840_)