Package net.minecraft.resource
Class ReloadableResourceManagerImpl.FailedReload
java.lang.Object
net.minecraft.resource.ReloadableResourceManagerImpl.FailedReload
- All Implemented Interfaces:
ResourceReload
- Enclosing class:
- ReloadableResourceManagerImpl
private static class ReloadableResourceManagerImpl.FailedReload
extends Object
implements ResourceReload
- Mappings:
Namespace Name official adz$aintermediary net/minecraft/class_3304$class_4742named net/minecraft/resource/ReloadableResourceManagerImpl$FailedReload
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns a fraction between 0 and 1 indicating the progress of this reload.booleanReturns if this reload has completed, either normally or abnormally.voidThrows an unchecked exception from this reload, if there is any.Returns a future for the reload.
-
Field Details
-
exception
- Mappings:
Namespace Name Mixin selector official aLadz$a;a:Ladz$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
- Mappings:
Namespace Name Mixin selector official bLadz$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;
-
-
Constructor Details
-
FailedReload
- Mappings:
Namespace Name Mixin selector official <init>Ladz$a;<init>(Ladz$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
-
-
Method Details
-
whenComplete
Returns a future for the reload. The returned future is completed when the reload completes.- Specified by:
whenCompletein interfaceResourceReload- Mappings:
Namespace Name Mixin selector official aLadq;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.- Specified by:
getProgressin interfaceResourceReload- Mappings:
Namespace Name Mixin selector official bLadq;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.- Specified by:
isCompletein interfaceResourceReload- Mappings:
Namespace Name Mixin selector official cLadq;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.- Specified by:
throwExceptionin interfaceResourceReload- Mappings:
Namespace Name Mixin selector official dLadq;d()Vintermediary method_18849Lnet/minecraft/class_4011;method_18849()Vnamed throwExceptionLnet/minecraft/resource/ResourceReload;throwException()V
-