Interface ResourceReload

All Known Implementing Classes:
ProfiledResourceReload, SimpleResourceReload

public interface ResourceReload
Represents a resource reload.
See Also:
Mappings:
Namespace Name
named net/minecraft/resource/ResourceReload
intermediary net/minecraft/class_4011
official aua
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns a fraction between 0 and 1 indicating the progress of this reload.
    default boolean
    Returns if this reload has completed, either normally or abnormally.
    default void
    Throws 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 whenComplete Lnet/minecraft/resource/ResourceReload;whenComplete()Ljava/util/concurrent/CompletableFuture;
      intermediary method_18364 Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;
      official a Laua;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 getProgress Lnet/minecraft/resource/ResourceReload;getProgress()F
      intermediary method_18229 Lnet/minecraft/class_4011;method_18229()F
      official b Laua;b()F
    • isComplete

      default boolean isComplete()
      Returns if this reload has completed, either normally or abnormally.
      Mappings:
      Namespace Name Mixin selector
      named isComplete Lnet/minecraft/resource/ResourceReload;isComplete()Z
      intermediary method_18787 Lnet/minecraft/class_4011;method_18787()Z
      official c Laua;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 throwException Lnet/minecraft/resource/ResourceReload;throwException()V
      intermediary method_18849 Lnet/minecraft/class_4011;method_18849()V
      official d Laua;d()V