Class ProfiledResourceReload

All Implemented Interfaces:
ResourceReload

public class ProfiledResourceReload extends SimpleResourceReload<ProfiledResourceReload.Summary>
An implementation of resource reload that includes an additional profiling summary for each reloader.
Mappings:
Namespace Name
named net/minecraft/resource/ProfiledResourceReload
intermediary net/minecraft/class_4010
official axj
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/resource/ProfiledResourceReload;LOGGER:Lorg/slf4j/Logger;
      intermediary field_17918 Lnet/minecraft/class_4010;field_17918:Lorg/slf4j/Logger;
      official a Laxj;a:Lorg/slf4j/Logger;
    • reloadTimer

      private final Stopwatch reloadTimer
      Mappings:
      Namespace Name Mixin selector
      named reloadTimer Lnet/minecraft/resource/ProfiledResourceReload;reloadTimer:Lcom/google/common/base/Stopwatch;
      intermediary field_17919 Lnet/minecraft/class_4010;field_17919:Lcom/google/common/base/Stopwatch;
      official b Laxj;b:Lcom/google/common/base/Stopwatch;
  • Constructor Details

    • ProfiledResourceReload

      private ProfiledResourceReload(List<ResourceReloader> waitingReloaders)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/ProfiledResourceReload;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_4010;<init>(Ljava/util/List;)V
      official <init> Laxj;<init>(Ljava/util/List;)V
  • Method Details

    • start

      public static ResourceReload start(ResourceManager manager, List<ResourceReloader> reloaders, Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage)
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/resource/ProfiledResourceReload;start(Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Lnet/minecraft/resource/ResourceReload;
      intermediary method_67569 Lnet/minecraft/class_4010;method_67569(Lnet/minecraft/class_3300;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Lnet/minecraft/class_4011;
      official a Laxj;a(Laxo;Ljava/util/List;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/util/concurrent/CompletableFuture;)Laxk;
    • startAsync

      protected CompletableFuture<List<ProfiledResourceReload.Summary>> startAsync(Executor prepareExecutor, Executor applyExecutor, ResourceManager manager, List<ResourceReloader> reloaders, SimpleResourceReload.Factory<ProfiledResourceReload.Summary> factory, CompletableFuture<?> initialStage)
      Overrides:
      startAsync in class SimpleResourceReload<ProfiledResourceReload.Summary>
      Mappings:
      Namespace Name Mixin selector
      named startAsync Lnet/minecraft/resource/SimpleResourceReload;startAsync(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lnet/minecraft/resource/ResourceManager;Ljava/util/List;Lnet/minecraft/resource/SimpleResourceReload$Factory;Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_67571 Lnet/minecraft/class_4014;method_67571(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;)Ljava/util/concurrent/CompletableFuture;
      official a Laxu;a(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Laxo;Ljava/util/List;Laxu$a;Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
    • getProfiledExecutor

      private static Executor getProfiledExecutor(Executor executor, AtomicLong output, AtomicLong counter, String name)
      Mappings:
      Namespace Name Mixin selector
      named getProfiledExecutor Lnet/minecraft/resource/ProfiledResourceReload;getProfiledExecutor(Ljava/util/concurrent/Executor;Ljava/util/concurrent/atomic/AtomicLong;Ljava/util/concurrent/atomic/AtomicLong;Ljava/lang/String;)Ljava/util/concurrent/Executor;
      intermediary method_64141 Lnet/minecraft/class_4010;method_64141(Ljava/util/concurrent/Executor;Ljava/util/concurrent/atomic/AtomicLong;Ljava/util/concurrent/atomic/AtomicLong;Ljava/lang/String;)Ljava/util/concurrent/Executor;
      official a Laxj;a(Ljava/util/concurrent/Executor;Ljava/util/concurrent/atomic/AtomicLong;Ljava/util/concurrent/atomic/AtomicLong;Ljava/lang/String;)Ljava/util/concurrent/Executor;
    • finish

      Mappings:
      Namespace Name Mixin selector
      named finish Lnet/minecraft/resource/ProfiledResourceReload;finish(Ljava/util/List;)Ljava/util/List;
      intermediary method_18238 Lnet/minecraft/class_4010;method_18238(Ljava/util/List;)Ljava/util/List;
      official a Laxj;a(Ljava/util/List;)Ljava/util/List;