Package net.minecraft.resource
Interface ResourceReload
- All Known Implementing Classes:
ProfiledResourceReload,SimpleResourceReload
public interface ResourceReload
Represents a resource reload.
- See Also:
- Mappings:
Namespace Name official aktintermediary net/minecraft/class_4011named net/minecraft/resource/ResourceReload
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturns a fraction between 0 and 1 indicating the progress of this reload.default booleanReturns if this reload has completed, either normally or abnormally.default voidThrows an unchecked exception from this reload, if there is any.Returns a future for the reload.
-
Method Details
-
whenComplete
CompletableFuture<?> whenComplete()Returns a future for the reload. The returned future is completed when the reload completes.- Mappings:
Namespace Name Mixin selector official aLakt;a()Ljava/util/concurrent/CompletableFuture;intermediary method_18364Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;named whenCompleteLnet/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 bLakt;b()Fintermediary method_18229Lnet/minecraft/class_4011;method_18229()Fnamed getProgressLnet/minecraft/resource/ResourceReload;getProgress()F
-
isComplete
default boolean isComplete()Returns if this reload has completed, either normally or abnormally.- Mappings:
Namespace Name Mixin selector official cLakt;c()Zintermediary method_18787Lnet/minecraft/class_4011;method_18787()Znamed isCompleteLnet/minecraft/resource/ResourceReload;isComplete()Z
-
throwException
default 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 dLakt;d()Vintermediary method_18849Lnet/minecraft/class_4011;method_18849()Vnamed throwExceptionLnet/minecraft/resource/ResourceReload;throwException()V
-