接口 ResourceReload
-
public interface ResourceReloadRepresents a resource reload.- 另请参阅:
ReloadableResourceManager.reload(java.util.concurrent.Executor, java.util.concurrent.Executor, CompletableFuture, java.util.List)- Mappings:
Namespace Name official adiintermediary net/minecraft/class_4011named net/minecraft/resource/ResourceReload
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 floatgetProgress()Returns a fraction between 0 and 1 indicating the progress of this reload.booleanisComplete()Returns if this reload has completed, either normally or abnormally.voidthrowException()Throws an unchecked exception from this reload, if there is any.CompletableFuture<Unit>whenComplete()Returns a future for the reload.
-
-
-
方法详细资料
-
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 aLadi;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 bLadi;b()Fintermediary method_18229Lnet/minecraft/class_4011;method_18229()Fnamed getProgressLnet/minecraft/resource/ResourceReload;getProgress()F
-
isComplete
boolean isComplete()
Returns if this reload has completed, either normally or abnormally.- Mappings:
Namespace Name Mixin selector official cLadi;c()Zintermediary method_18787Lnet/minecraft/class_4011;method_18787()Znamed isCompleteLnet/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 dLadi;d()Vintermediary method_18849Lnet/minecraft/class_4011;method_18849()Vnamed throwExceptionLnet/minecraft/resource/ResourceReload;throwException()V
-
-