类 SimpleReloadInstance<S>
java.lang.Object
net.minecraft.server.packs.resources.SimpleReloadInstance<S>
- 所有已实现的接口:
ReloadInstance
- 直接已知子类:
ProfiledReloadInstance
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected CompletableFuture<List<S>>
protected final CompletableFuture<Unit>
private final AtomicInteger
private static final int
private int
private static final int
private final int
private static final int
(专用程序包) final Set<PreparableReloadListener>
private int
private final AtomicInteger
-
构造器概要
构造器限定符构造器说明protected
SimpleReloadInstance
(Executor pBackgroundExecutor, Executor pGameExecutor, ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, SimpleReloadInstance.StateFactory<S> p_10812_, CompletableFuture<Unit> pAlsoWaitedFor) -
方法概要
修饰符和类型方法说明static ReloadInstance
create
(ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, Executor pBackgroundExecutor, Executor pGameExecutor, CompletableFuture<Unit> pAlsoWaitedFor, boolean pProfiled) done()
float
static SimpleReloadInstance<Void>
of
(ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, Executor pBackgroundExecutor, Executor pGameExecutor, CompletableFuture<Unit> pAlsoWaitedFor) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.ReloadInstance
checkExceptions, isDone
-
字段详细资料
-
PREPARATION_PROGRESS_WEIGHT
private static final int PREPARATION_PROGRESS_WEIGHT- 另请参阅:
-
EXTRA_RELOAD_PROGRESS_WEIGHT
private static final int EXTRA_RELOAD_PROGRESS_WEIGHT- 另请参阅:
-
LISTENER_PROGRESS_WEIGHT
private static final int LISTENER_PROGRESS_WEIGHT- 另请参阅:
-
allPreparations
-
allDone
-
preparingListeners
-
listenerCount
private final int listenerCount -
startedReloads
private int startedReloads -
finishedReloads
private int finishedReloads -
startedTaskCounter
-
doneTaskCounter
-
-
构造器详细资料
-
SimpleReloadInstance
protected SimpleReloadInstance(Executor pBackgroundExecutor, Executor pGameExecutor, ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, SimpleReloadInstance.StateFactory<S> p_10812_, CompletableFuture<Unit> pAlsoWaitedFor)
-
-
方法详细资料
-
of
public static SimpleReloadInstance<Void> of(ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, Executor pBackgroundExecutor, Executor pGameExecutor, CompletableFuture<Unit> pAlsoWaitedFor) -
done
- 指定者:
done
在接口中ReloadInstance
-
getActualProgress
public float getActualProgress()- 指定者:
getActualProgress
在接口中ReloadInstance
-
create
public static ReloadInstance create(ResourceManager pResourceManager, List<PreparableReloadListener> pListeners, Executor pBackgroundExecutor, Executor pGameExecutor, CompletableFuture<Unit> pAlsoWaitedFor, boolean pProfiled)
-