net.minecraft.resource

public class ResourceReloader<S>

implements ResourceReloadMonitor

xk
net.minecraft.class_4014
net.minecraft.resource.ResourceReloader
net.minecraft.resource.manager.SimpleResourceReload
net.minecraft.resources.AsyncReloader
net.minecraft.resources.AsyncReloader

Field summary

Modifier and TypeField
protected final ResourceManager
a
field_17927
manager
resourceManager
field_219565_a
resourceManager
protected final CompletableFuture<Unit>
b
field_18042
prepareStageFuture
preparations
field_219566_b
allAsyncCompleted
protected final CompletableFuture<List<S>>
c
field_18043
applyStageFuture
result
field_219567_c
resultListFuture
private final Set<ResourceReloadListener>
d
field_18044
waitingListeners
preparingListeners
field_219568_d
taskSet
private final int
e
field_18045
listenerCount
listenerCount
field_219569_e
taskCount
private int
f
field_18046
applyingCount
applicationsStarted
field_219570_f
syncScheduled
private int
g
field_18047
appliedCount
applicationsFinished
field_219571_g
syncCompleted
private final AtomicInteger
h
field_18048
preparingCount
preparationsStarted
field_219572_h
asyncScheduled
private final AtomicInteger
i
field_18049
preparedCount
preparationsFinished
field_219573_i
asyncCompleted

Constructor summary

ModifierConstructor
protected (Executor backgroundExecutor, Executor mainThreadExecutor, ResourceManager resourceManager, List<ResourceReloadListener> listeners, ResourceReloader$Factory<S> factory, CompletableFuture<Unit> initialTask)

Method summary

Modifier and TypeMethod
public static ResourceReloader<Void>
a(xg arg0, List<xb> arg1, Executor arg2, Executor arg3, CompletableFuture<aad> arg4)
method_18369(class_3300 arg0, List<class_3302> arg1, Executor arg2, Executor arg3, CompletableFuture<class_3902> arg4)
create(ResourceManager arg0, List<ResourceReloadListener> arg1, Executor arg2, Executor arg3, CompletableFuture<Unit> arg4)
of(ResourceManager resourceManager, List<ResourceReloadListener> listeners, Executor backgroundExecutor, Executor mainThreadExecutor, CompletableFuture<Unit> initialTask)
func_219562_a(IResourceManager arg0, List<IFutureReloadListener> arg1, Executor arg2, Executor arg3, CompletableFuture<Unit> arg4)
create(IResourceManager resourceManager, List<IFutureReloadListener> listeners, Executor backgroundExecutor, Executor gameExecutor, CompletableFuture<Unit> alsoWaitedFor)
public CompletableFuture<Unit>
a()
method_18364()
whenComplete()
getResult()
func_219552_a()
onceDone()
public float
b()
method_18229()
getProgress()
getProgress()
func_219555_b()
estimateExecutionSpeed()
public boolean
c()
method_18786()
isLoadStageComplete()
isApplying()
func_219553_c()
asyncPartDone()
public boolean
d()
method_18787()
isApplyStageComplete()
isDone()
func_219554_d()
fullyDone()
public void
e()
method_18849()
throwExceptions()
checkExceptions()
func_219556_e()
join()