Package net.minecraft

Class class_11697

java.lang.Object
net.minecraft.class_11697
All Implemented Interfaces:
AutoCloseable, class_11701, ResourceReloader

@Environment(CLIENT) public class class_11697 extends Object implements ResourceReloader, class_11701, AutoCloseable
Mappings:
Namespace Name
named net/minecraft/class_11697
intermediary net/minecraft/class_11697
official hxb
  • Field Details

    • ATLAS_METADATA

      private static final List<class_11697.Metadata> ATLAS_METADATA
      Mappings:
      Namespace Name Mixin selector
      named ATLAS_METADATA Lnet/minecraft/class_11697;ATLAS_METADATA:Ljava/util/List;
      intermediary field_61862 Lnet/minecraft/class_11697;field_61862:Ljava/util/List;
      official b Lhxb;b:Ljava/util/List;
    • field_61861

      public static final ResourceReloader.Key<class_11697.Stitch> field_61861
      Mappings:
      Namespace Name Mixin selector
      named field_61861 Lnet/minecraft/class_11697;field_61861:Lnet/minecraft/resource/ResourceReloader$Key;
      intermediary field_61861 Lnet/minecraft/class_11697;field_61861:Lnet/minecraft/class_3302$class_11559;
      official a Lhxb;a:Laxn$c;
    • field_61863

      private final Map<Identifier,class_11697.Entry> field_61863
      Mappings:
      Namespace Name Mixin selector
      named field_61863 Lnet/minecraft/class_11697;field_61863:Ljava/util/Map;
      intermediary field_61863 Lnet/minecraft/class_11697;field_61863:Ljava/util/Map;
      official c Lhxb;c:Ljava/util/Map;
    • field_61864

      private Map<SpriteIdentifier,Sprite> field_61864
      Mappings:
      Namespace Name Mixin selector
      named field_61864 Lnet/minecraft/class_11697;field_61864:Ljava/util/Map;
      intermediary field_61864 Lnet/minecraft/class_11697;field_61864:Ljava/util/Map;
      official d Lhxb;d:Ljava/util/Map;
    • field_61865

      private int field_61865
      Mappings:
      Namespace Name Mixin selector
      named field_61865 Lnet/minecraft/class_11697;field_61865:I
      intermediary field_61865 Lnet/minecraft/class_11697;field_61865:I
      official e Lhxb;e:I
  • Constructor Details

    • class_11697

      public class_11697(TextureManager textureManager, int int2)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/class_11697;<init>(Lnet/minecraft/client/texture/TextureManager;I)V
      intermediary <init> Lnet/minecraft/class_11697;<init>(Lnet/minecraft/class_1060;I)V
      official <init> Lhxb;<init>(Lhvf;I)V
  • Method Details

    • method_73033

      private class_11697.Entry method_73033(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      named method_73033 Lnet/minecraft/class_11697;method_73033(Lnet/minecraft/util/Identifier;)Lnet/minecraft/class_11697$Entry;
      intermediary method_73033 Lnet/minecraft/class_11697;method_73033(Lnet/minecraft/class_2960;)Lnet/minecraft/class_11697$class_7772;
      official b Lhxb;b(Lamh;)Lhxb$b;
    • method_73025

      public SpriteAtlasTexture method_73025(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      named method_73025 Lnet/minecraft/class_11697;method_73025(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/SpriteAtlasTexture;
      intermediary method_73025 Lnet/minecraft/class_11697;method_73025(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1059;
      official a Lhxb;a(Lamh;)Lhvc;
    • method_73024

      public void method_73024(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_73024 Lnet/minecraft/class_11697;method_73024(I)V
      intermediary method_73024 Lnet/minecraft/class_11697;method_73024(I)V
      official a Lhxb;a(I)V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • method_73030

      public Sprite method_73030(SpriteIdentifier spriteIdentifier)
      Specified by:
      method_73030 in interface class_11701
      Mappings:
      Namespace Name Mixin selector
      named method_73030 Lnet/minecraft/class_11701;method_73030(Lnet/minecraft/client/util/SpriteIdentifier;)Lnet/minecraft/client/texture/Sprite;
      intermediary method_73030 Lnet/minecraft/class_11701;method_73030(Lnet/minecraft/class_4730;)Lnet/minecraft/class_1058;
      official a Lhxj;a(Lhxi;)Lhvd;
    • prepareSharedState

      public void prepareSharedState(ResourceReloader.class_11558 class_11558)
      Specified by:
      prepareSharedState in interface ResourceReloader
    • reload

      public CompletableFuture<Void> reload(ResourceReloader.class_11558 class_11558, Executor executor, ResourceReloader.Synchronizer synchronizer, Executor applyExecutor)
      Performs a reload. Returns a future that is completed when the reload is completed.

      In a reload, there is a prepare stage and an apply stage. For the prepare stage, you should create completable futures with CompletableFuture.supplyAsync(..., prepareExecutor) to ensure the prepare actions are done with the prepare executor. Then, you should have a completable future for all the prepared actions, and call combinedPrepare.thenCompose(synchronizer::waitFor) to notify the synchronizer. Finally, you should run CompletableFuture.thenAcceptAsync(..., applyExecutor) for apply actions. In the end, returns the result of thenAcceptAsync.

      Specified by:
      reload in interface ResourceReloader
      Returns:
      a future for the reload
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named reload Lnet/minecraft/resource/ResourceReloader;reload(Lnet/minecraft/resource/ResourceReloader$class_11558;Ljava/util/concurrent/Executor;Lnet/minecraft/resource/ResourceReloader$Synchronizer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_25931 Lnet/minecraft/class_3302;method_25931(Lnet/minecraft/class_3302$class_11558;Ljava/util/concurrent/Executor;Lnet/minecraft/class_3302$class_4045;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official reload Laxn;reload(Laxn$b;Ljava/util/concurrent/Executor;Laxn$a;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;