类 ReloadableResourceManagerImpl.FailedReload
- java.lang.Object
-
- net.minecraft.resource.ReloadableResourceManagerImpl.FailedReload
-
- 所有已实现的接口:
ResourceReload
static class ReloadableResourceManagerImpl.FailedReload extends Object implements ResourceReload
- Mappings:
Namespace Name official adr$aintermediary net/minecraft/class_3304$class_4742named net/minecraft/resource/ReloadableResourceManagerImpl$FailedReload
-
-
字段概要
字段 修饰符和类型 字段 说明 private ReloadableResourceManagerImpl.PackAdditionFailedExceptionexceptionprivate CompletableFuture<Unit>future
-
构造器概要
构造器 构造器 说明 FailedReload(ReloadableResourceManagerImpl.PackAdditionFailedException exception)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
-
-
-
字段详细资料
-
exception
private final ReloadableResourceManagerImpl.PackAdditionFailedException exception
- Mappings:
Namespace Name Mixin selector official aLadr$a;a:Ladr$b;intermediary field_21810Lnet/minecraft/class_3304$class_4742;field_21810:Lnet/minecraft/class_3304$class_4743;named exceptionLnet/minecraft/resource/ReloadableResourceManagerImpl$FailedReload;exception:Lnet/minecraft/resource/ReloadableResourceManagerImpl$PackAdditionFailedException;
-
future
private final CompletableFuture<Unit> future
- Mappings:
Namespace Name Mixin selector official bLadr$a;b:Ljava/util/concurrent/CompletableFuture;intermediary field_21811Lnet/minecraft/class_3304$class_4742;field_21811:Ljava/util/concurrent/CompletableFuture;named futureLnet/minecraft/resource/ReloadableResourceManagerImpl$FailedReload;future:Ljava/util/concurrent/CompletableFuture;
-
-
构造器详细资料
-
FailedReload
public FailedReload(ReloadableResourceManagerImpl.PackAdditionFailedException exception)
- Mappings:
Namespace Name Mixin selector official <init>Ladr$a;<init>(Ladr$b;)Vintermediary <init>Lnet/minecraft/class_3304$class_4742;<init>(Lnet/minecraft/class_3304$class_4743;)Vnamed <init>Lnet/minecraft/resource/ReloadableResourceManagerImpl$FailedReload;<init>(Lnet/minecraft/resource/ReloadableResourceManagerImpl$PackAdditionFailedException;)V
-
-
方法详细资料
-
whenComplete
public CompletableFuture<Unit> whenComplete()
Returns a future for the reload. The returned future is completed when the reload completes.- 指定者:
whenComplete在接口中ResourceReload- 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
public float getProgress()
Returns a fraction between 0 and 1 indicating the progress of this reload.- 指定者:
getProgress在接口中ResourceReload- Mappings:
Namespace Name Mixin selector official bLadi;b()Fintermediary method_18229Lnet/minecraft/class_4011;method_18229()Fnamed getProgressLnet/minecraft/resource/ResourceReload;getProgress()F
-
isComplete
public boolean isComplete()
Returns if this reload has completed, either normally or abnormally.- 指定者:
isComplete在接口中ResourceReload- Mappings:
Namespace Name Mixin selector official cLadi;c()Zintermediary method_18787Lnet/minecraft/class_4011;method_18787()Znamed isCompleteLnet/minecraft/resource/ResourceReload;isComplete()Z
-
throwException
public void throwException()
Throws an unchecked exception from this reload, if there is any. Does nothing if the reload has not completed or terminated.- 指定者:
throwException在接口中ResourceReload- Mappings:
Namespace Name Mixin selector official dLadi;d()Vintermediary method_18849Lnet/minecraft/class_4011;method_18849()Vnamed throwExceptionLnet/minecraft/resource/ResourceReload;throwException()V
-
-