Class ResourceReloader<S>

java.lang.Object
net.minecraft.resource.ResourceReloader<S>
All Implemented Interfaces:
ResourceReloadMonitor
Direct Known Subclasses:
ProfilingResourceReloader

public class ResourceReloader<S>
extends Object
implements ResourceReloadMonitor
Mappings:
Namespace Name
official adb
intermediary net/minecraft/class_4014
named net/minecraft/resource/ResourceReloader
  • Field Details

    • manager

      protected final ResourceManager manager
      Mappings:
      Namespace Name Mixin selector
      official a Ladb;a:Lacx;
      intermediary field_17927 Lnet/minecraft/class_4014;field_17927:Lnet/minecraft/class_3300;
      named manager Lnet/minecraft/resource/ResourceReloader;manager:Lnet/minecraft/resource/ResourceManager;
    • prepareStageFuture

      protected final CompletableFuture<Unit> prepareStageFuture
      Mappings:
      Namespace Name Mixin selector
      official b Ladb;b:Ljava/util/concurrent/CompletableFuture;
      intermediary field_18042 Lnet/minecraft/class_4014;field_18042:Ljava/util/concurrent/CompletableFuture;
      named prepareStageFuture Lnet/minecraft/resource/ResourceReloader;prepareStageFuture:Ljava/util/concurrent/CompletableFuture;
    • applyStageFuture

      protected final CompletableFuture<List<S>> applyStageFuture
      Mappings:
      Namespace Name Mixin selector
      official c Ladb;c:Ljava/util/concurrent/CompletableFuture;
      intermediary field_18043 Lnet/minecraft/class_4014;field_18043:Ljava/util/concurrent/CompletableFuture;
      named applyStageFuture Lnet/minecraft/resource/ResourceReloader;applyStageFuture:Ljava/util/concurrent/CompletableFuture;
    • waitingListeners

      private final Set<ResourceReloadListener> waitingListeners
      Mappings:
      Namespace Name Mixin selector
      official d Ladb;d:Ljava/util/Set;
      intermediary field_18044 Lnet/minecraft/class_4014;field_18044:Ljava/util/Set;
      named waitingListeners Lnet/minecraft/resource/ResourceReloader;waitingListeners:Ljava/util/Set;
    • listenerCount

      private final int listenerCount
      Mappings:
      Namespace Name Mixin selector
      official e Ladb;e:I
      intermediary field_18045 Lnet/minecraft/class_4014;field_18045:I
      named listenerCount Lnet/minecraft/resource/ResourceReloader;listenerCount:I
    • applyingCount

      private int applyingCount
      Mappings:
      Namespace Name Mixin selector
      official f Ladb;f:I
      intermediary field_18046 Lnet/minecraft/class_4014;field_18046:I
      named applyingCount Lnet/minecraft/resource/ResourceReloader;applyingCount:I
    • appliedCount

      private int appliedCount
      Mappings:
      Namespace Name Mixin selector
      official g Ladb;g:I
      intermediary field_18047 Lnet/minecraft/class_4014;field_18047:I
      named appliedCount Lnet/minecraft/resource/ResourceReloader;appliedCount:I
    • preparingCount

      private final AtomicInteger preparingCount
      Mappings:
      Namespace Name Mixin selector
      official h Ladb;h:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_18048 Lnet/minecraft/class_4014;field_18048:Ljava/util/concurrent/atomic/AtomicInteger;
      named preparingCount Lnet/minecraft/resource/ResourceReloader;preparingCount:Ljava/util/concurrent/atomic/AtomicInteger;
    • preparedCount

      private final AtomicInteger preparedCount
      Mappings:
      Namespace Name Mixin selector
      official i Ladb;i:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_18049 Lnet/minecraft/class_4014;field_18049:Ljava/util/concurrent/atomic/AtomicInteger;
      named preparedCount Lnet/minecraft/resource/ResourceReloader;preparedCount:Ljava/util/concurrent/atomic/AtomicInteger;
  • Constructor Details

    • ResourceReloader

      protected ResourceReloader​(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloadListener> listeners, ResourceReloader.Factory<S> creator, CompletableFuture<Unit> initialStage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladb;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lacx;Ljava/util/List;Ladb$a;Ljava/util/concurrent/CompletableFuture;)V
      intermediary <init> Lnet/minecraft/class_4014;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3300;Ljava/util/List;Lnet/minecraft/class_4014$class_4047;Ljava/util/concurrent/CompletableFuture;)V
      named <init> Lnet/minecraft/resource/ResourceReloader;<init>(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Lnet/minecraft/resource/ResourceReloader$Factory;Ljava/util/concurrent/CompletableFuture;)V
  • Method Details

    • create

      public static ResourceReloader<Void> create​(ResourceManager manager, List<ResourceReloadListener> listeners, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)
      Mappings:
      Namespace Name Mixin selector
      official a Ladb;a(Lacx;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Ladb;
      intermediary method_18369 Lnet/minecraft/class_4014;method_18369(Lnet/minecraft/class_3300;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Lnet/minecraft/class_4014;
      named create Lnet/minecraft/resource/ResourceReloader;create(Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Lnet/minecraft/resource/ResourceReloader;
    • whenComplete

      public CompletableFuture<Unit> whenComplete()
      Specified by:
      whenComplete in interface ResourceReloadMonitor
      Mappings:
      Namespace Name Mixin selector
      official a Lacu;a()Ljava/util/concurrent/CompletableFuture;
      intermediary method_18364 Lnet/minecraft/class_4011;method_18364()Ljava/util/concurrent/CompletableFuture;
      named whenComplete Lnet/minecraft/resource/ResourceReloadMonitor;whenComplete()Ljava/util/concurrent/CompletableFuture;
    • getProgress

      @Environment(CLIENT) public float getProgress()
      Specified by:
      getProgress in interface ResourceReloadMonitor
      Mappings:
      Namespace Name Mixin selector
      official b Lacu;b()F
      intermediary method_18229 Lnet/minecraft/class_4011;method_18229()F
      named getProgress Lnet/minecraft/resource/ResourceReloadMonitor;getProgress()F
    • isPrepareStageComplete

      @Environment(CLIENT) public boolean isPrepareStageComplete()
      Specified by:
      isPrepareStageComplete in interface ResourceReloadMonitor
      Mappings:
      Namespace Name Mixin selector
      official c Lacu;c()Z
      intermediary method_18786 Lnet/minecraft/class_4011;method_18786()Z
      named isPrepareStageComplete Lnet/minecraft/resource/ResourceReloadMonitor;isPrepareStageComplete()Z
    • isApplyStageComplete

      @Environment(CLIENT) public boolean isApplyStageComplete()
      Specified by:
      isApplyStageComplete in interface ResourceReloadMonitor
      Mappings:
      Namespace Name Mixin selector
      official d Lacu;d()Z
      intermediary method_18787 Lnet/minecraft/class_4011;method_18787()Z
      named isApplyStageComplete Lnet/minecraft/resource/ResourceReloadMonitor;isApplyStageComplete()Z
    • throwExceptions

      @Environment(CLIENT) public void throwExceptions()
      Specified by:
      throwExceptions in interface ResourceReloadMonitor
      Mappings:
      Namespace Name Mixin selector
      official e Lacu;e()V
      intermediary method_18849 Lnet/minecraft/class_4011;method_18849()V
      named throwExceptions Lnet/minecraft/resource/ResourceReloadMonitor;throwExceptions()V