类 ReloadableResourceManagerImpl.FailedReload

  • 所有已实现的接口:
    ResourceReload
    封闭类:
    ReloadableResourceManagerImpl

    static class ReloadableResourceManagerImpl.FailedReload
    extends Object
    implements ResourceReload
    Mappings:
    Namespace Name
    official adr$a
    intermediary net/minecraft/class_3304$class_4742
    named net/minecraft/resource/ReloadableResourceManagerImpl$FailedReload
    • 字段详细资料

      • exception

        private final ReloadableResourceManagerImpl.PackAdditionFailedException exception
        Mappings:
        Namespace Name Mixin selector
        official a Ladr$a;a:Ladr$b;
        intermediary field_21810 Lnet/minecraft/class_3304$class_4742;field_21810:Lnet/minecraft/class_3304$class_4743;
        named exception Lnet/minecraft/resource/ReloadableResourceManagerImpl$FailedReload;exception:Lnet/minecraft/resource/ReloadableResourceManagerImpl$PackAdditionFailedException;
      • future

        private final CompletableFuture<Unit> future
        Mappings:
        Namespace Name Mixin selector
        official b Ladr$a;b:Ljava/util/concurrent/CompletableFuture;
        intermediary field_21811 Lnet/minecraft/class_3304$class_4742;field_21811:Ljava/util/concurrent/CompletableFuture;
        named future Lnet/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;)V
        intermediary <init> Lnet/minecraft/class_3304$class_4742;<init>(Lnet/minecraft/class_3304$class_4743;)V
        named <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 a Ladi;a()Ljava/util/concurrent/CompletableFuture;
        intermediary method_18364 Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;
        named whenComplete Lnet/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 b Ladi;b()F
        intermediary method_18229 Lnet/minecraft/class_4011;method_18229()F
        named getProgress Lnet/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 c Ladi;c()Z
        intermediary method_18787 Lnet/minecraft/class_4011;method_18787()Z
        named isComplete Lnet/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 d Ladi;d()V
        intermediary method_18849 Lnet/minecraft/class_4011;method_18849()V
        named throwException Lnet/minecraft/resource/ResourceReload;throwException()V