Package net.minecraft.resource
Class ResourceReloader<S>
java.lang.Object
net.minecraft.resource.ResourceReloader<S>
- All Implemented Interfaces:
ResourceReloadMonitor
- Direct Known Subclasses:
ProfilingResourceReloader
public class ResourceReloader<S> extends Object implements ResourceReloadMonitor
- Mappings:
Namespace Name official adbintermediary net/minecraft/class_4014named net/minecraft/resource/ResourceReloader
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceReloader.Factory<S> -
Field Summary
Fields Modifier and Type Field Description private intappliedCountprivate intapplyingCountprotected CompletableFuture<List<S>>applyStageFutureprivate intlistenerCountprotected ResourceManagermanagerprivate AtomicIntegerpreparedCountprotected CompletableFuture<Unit>prepareStageFutureprivate AtomicIntegerpreparingCountprivate Set<ResourceReloadListener>waitingListeners -
Constructor Summary
Constructors Modifier Constructor Description protectedResourceReloader(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloadListener> listeners, ResourceReloader.Factory<S> creator, CompletableFuture<Unit> initialStage) -
Method Summary
Modifier and Type Method Description static ResourceReloader<Void>create(ResourceManager manager, List<ResourceReloadListener> listeners, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)floatgetProgress()booleanisApplyStageComplete()booleanisPrepareStageComplete()voidthrowExceptions()CompletableFuture<Unit>whenComplete()
-
Field Details
-
manager
- Mappings:
Namespace Name Mixin selector official aLadb;a:Lacx;intermediary field_17927Lnet/minecraft/class_4014;field_17927:Lnet/minecraft/class_3300;named managerLnet/minecraft/resource/ResourceReloader;manager:Lnet/minecraft/resource/ResourceManager;
-
prepareStageFuture
- Mappings:
Namespace Name Mixin selector official bLadb;b:Ljava/util/concurrent/CompletableFuture;intermediary field_18042Lnet/minecraft/class_4014;field_18042:Ljava/util/concurrent/CompletableFuture;named prepareStageFutureLnet/minecraft/resource/ResourceReloader;prepareStageFuture:Ljava/util/concurrent/CompletableFuture;
-
applyStageFuture
- Mappings:
Namespace Name Mixin selector official cLadb;c:Ljava/util/concurrent/CompletableFuture;intermediary field_18043Lnet/minecraft/class_4014;field_18043:Ljava/util/concurrent/CompletableFuture;named applyStageFutureLnet/minecraft/resource/ResourceReloader;applyStageFuture:Ljava/util/concurrent/CompletableFuture;
-
waitingListeners
- Mappings:
Namespace Name Mixin selector official dLadb;d:Ljava/util/Set;intermediary field_18044Lnet/minecraft/class_4014;field_18044:Ljava/util/Set;named waitingListenersLnet/minecraft/resource/ResourceReloader;waitingListeners:Ljava/util/Set;
-
listenerCount
private final int listenerCount- Mappings:
Namespace Name Mixin selector official eLadb;e:Iintermediary field_18045Lnet/minecraft/class_4014;field_18045:Inamed listenerCountLnet/minecraft/resource/ResourceReloader;listenerCount:I
-
applyingCount
private int applyingCount- Mappings:
Namespace Name Mixin selector official fLadb;f:Iintermediary field_18046Lnet/minecraft/class_4014;field_18046:Inamed applyingCountLnet/minecraft/resource/ResourceReloader;applyingCount:I
-
appliedCount
private int appliedCount- Mappings:
Namespace Name Mixin selector official gLadb;g:Iintermediary field_18047Lnet/minecraft/class_4014;field_18047:Inamed appliedCountLnet/minecraft/resource/ResourceReloader;appliedCount:I
-
preparingCount
- Mappings:
Namespace Name Mixin selector official hLadb;h:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_18048Lnet/minecraft/class_4014;field_18048:Ljava/util/concurrent/atomic/AtomicInteger;named preparingCountLnet/minecraft/resource/ResourceReloader;preparingCount:Ljava/util/concurrent/atomic/AtomicInteger;
-
preparedCount
- Mappings:
Namespace Name Mixin selector official iLadb;i:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_18049Lnet/minecraft/class_4014;field_18049:Ljava/util/concurrent/atomic/AtomicInteger;named preparedCountLnet/minecraft/resource/ResourceReloader;preparedCount:Ljava/util/concurrent/atomic/AtomicInteger;
-
-
Constructor Details
-
ResourceReloader
protected ResourceReloader(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloadListener> listeners, ResourceReloader.Factory<S> creator, CompletableFuture<Unit> initialStage)- Mappings:
Namespace Name Mixin selector official <init>Ladb;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lacx;Ljava/util/List;Ladb$a;Ljava/util/concurrent/CompletableFuture;)Vintermediary <init>Lnet/minecraft/class_4014;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3300;Ljava/util/List;Lnet/minecraft/class_4014$class_4047;Ljava/util/concurrent/CompletableFuture;)Vnamed <init>Lnet/minecraft/resource/ResourceReloader;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Lnet/minecraft/resource/ResourceReloader$Factory;Ljava/util/concurrent/CompletableFuture;)V
-
-
Method Details
-
create
public static ResourceReloader<Void> create(ResourceManager manager, List<ResourceReloadListener> listeners, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)- Mappings:
Namespace Name Mixin selector official aLadb;a(Lacx;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Ladb;intermediary method_18369Lnet/minecraft/class_4014;method_18369(Lnet/minecraft/class_3300;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Lnet/minecraft/class_4014;named createLnet/minecraft/resource/ResourceReloader;create(Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Lnet/minecraft/resource/ResourceReloader;
-
whenComplete
- Specified by:
whenCompletein interfaceResourceReloadMonitor- Mappings:
Namespace Name Mixin selector official aLacu;a()Ljava/util/concurrent/CompletableFuture;intermediary method_18364Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;named whenCompleteLnet/minecraft/resource/ResourceReloadMonitor;whenComplete()Ljava/util/concurrent/CompletableFuture;
-
getProgress
- Specified by:
getProgressin interfaceResourceReloadMonitor- Mappings:
Namespace Name Mixin selector official bLacu;b()Fintermediary method_18229Lnet/minecraft/class_4011;method_18229()Fnamed getProgressLnet/minecraft/resource/ResourceReloadMonitor;getProgress()F
-
isPrepareStageComplete
- Specified by:
isPrepareStageCompletein interfaceResourceReloadMonitor- Mappings:
Namespace Name Mixin selector official cLacu;c()Zintermediary method_18786Lnet/minecraft/class_4011;method_18786()Znamed isPrepareStageCompleteLnet/minecraft/resource/ResourceReloadMonitor;isPrepareStageComplete()Z
-
isApplyStageComplete
- Specified by:
isApplyStageCompletein interfaceResourceReloadMonitor- Mappings:
Namespace Name Mixin selector official dLacu;d()Zintermediary method_18787Lnet/minecraft/class_4011;method_18787()Znamed isApplyStageCompleteLnet/minecraft/resource/ResourceReloadMonitor;isApplyStageComplete()Z
-
throwExceptions
- Specified by:
throwExceptionsin interfaceResourceReloadMonitor- Mappings:
Namespace Name Mixin selector official eLacu;e()Vintermediary method_18849Lnet/minecraft/class_4011;method_18849()Vnamed throwExceptionsLnet/minecraft/resource/ResourceReloadMonitor;throwExceptions()V
-