Package net.minecraft.resource
Interface ResourceReload
- All Known Implementing Classes:
ProfiledResourceReload
,ReloadableResourceManagerImpl.FailedReload
,SimpleResourceReload
public interface ResourceReload
Represents a resource reload.
- See Also:
ReloadableResourceManager.reload(java.util.concurrent.Executor, java.util.concurrent.Executor, CompletableFuture, java.util.List)
- Mappings:
Namespace Name official adq
intermediary net/minecraft/class_4011
named net/minecraft/resource/ResourceReload
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns a fraction between 0 and 1 indicating the progress of this reload.boolean
Returns if this reload has completed, either normally or abnormally.void
Throws an unchecked exception from this reload, if there is any.Returns a future for the reload.
-
Method Details
-
whenComplete
CompletableFuture<Unit> whenComplete()Returns a future for the reload. The returned future is completed when the reload completes.- Mappings:
Namespace Name Mixin selector official a
Ladq;a()Ljava/util/concurrent/CompletableFuture;
intermediary method_18364
Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;
named whenComplete
Lnet/minecraft/resource/ResourceReload;whenComplete()Ljava/util/concurrent/CompletableFuture;
-
getProgress
float getProgress()Returns a fraction between 0 and 1 indicating the progress of this reload.- Mappings:
Namespace Name Mixin selector official b
Ladq;b()F
intermediary method_18229
Lnet/minecraft/class_4011;method_18229()F
named getProgress
Lnet/minecraft/resource/ResourceReload;getProgress()F
-
isComplete
boolean isComplete()Returns if this reload has completed, either normally or abnormally.- Mappings:
Namespace Name Mixin selector official c
Ladq;c()Z
intermediary method_18787
Lnet/minecraft/class_4011;method_18787()Z
named isComplete
Lnet/minecraft/resource/ResourceReload;isComplete()Z
-
throwException
void throwException()Throws an unchecked exception from this reload, if there is any. Does nothing if the reload has not completed or terminated.- Mappings:
Namespace Name Mixin selector official d
Ladq;d()V
intermediary method_18849
Lnet/minecraft/class_4011;method_18849()V
named throwException
Lnet/minecraft/resource/ResourceReload;throwException()V
-