Package net.minecraft.resource
Interface ResourceReload
- All Known Implementing Classes:
ProfiledResourceReload,SimpleResourceReload
public interface ResourceReload
Represents a resource reload.
- See Also:
- Mappings:
Namespace Name named net/minecraft/resource/ResourceReloadintermediary net/minecraft/class_4011official aua
-
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 named whenCompleteLnet/minecraft/resource/ResourceReload;whenComplete()Ljava/util/concurrent/CompletableFuture;intermediary method_18364Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;official aLaua;a()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 named getProgressLnet/minecraft/resource/ResourceReload;getProgress()Fintermediary method_18229Lnet/minecraft/class_4011;method_18229()Fofficial bLaua;b()F
-
isComplete
default boolean isComplete()Returns if this reload has completed, either normally or abnormally.- Mappings:
Namespace Name Mixin selector named isCompleteLnet/minecraft/resource/ResourceReload;isComplete()Zintermediary method_18787Lnet/minecraft/class_4011;method_18787()Zofficial cLaua;c()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 named throwExceptionLnet/minecraft/resource/ResourceReload;throwException()Vintermediary method_18849Lnet/minecraft/class_4011;method_18849()Vofficial dLaua;d()V
-