Class SpriteLoader

java.lang.Object
net.minecraft.client.texture.SpriteLoader

@Environment(CLIENT) public class SpriteLoader extends Object
Mappings:
Namespace Name
named net/minecraft/client/texture/SpriteLoader
intermediary net/minecraft/class_7766
official gqg
  • Field Details

    • METADATA_READERS

      public static final Set<ResourceMetadataReader<?>> METADATA_READERS
      Mappings:
      Namespace Name Mixin selector
      named METADATA_READERS Lnet/minecraft/client/texture/SpriteLoader;METADATA_READERS:Ljava/util/Set;
      intermediary field_45632 Lnet/minecraft/class_7766;field_45632:Ljava/util/Set;
      official a Lgqg;a:Ljava/util/Set;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/texture/SpriteLoader;LOGGER:Lorg/slf4j/Logger;
      intermediary field_40548 Lnet/minecraft/class_7766;field_40548:Lorg/slf4j/Logger;
      official b Lgqg;b:Lorg/slf4j/Logger;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/texture/SpriteLoader;id:Lnet/minecraft/util/Identifier;
      intermediary field_40549 Lnet/minecraft/class_7766;field_40549:Lnet/minecraft/class_2960;
      official c Lgqg;c:Lakr;
    • maxTextureSize

      private final int maxTextureSize
      Mappings:
      Namespace Name Mixin selector
      named maxTextureSize Lnet/minecraft/client/texture/SpriteLoader;maxTextureSize:I
      intermediary field_40550 Lnet/minecraft/class_7766;field_40550:I
      official d Lgqg;d:I
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/texture/SpriteLoader;width:I
      intermediary field_43111 Lnet/minecraft/class_7766;field_43111:I
      official e Lgqg;e:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/client/texture/SpriteLoader;height:I
      intermediary field_43112 Lnet/minecraft/class_7766;field_43112:I
      official f Lgqg;f:I
  • Constructor Details

    • SpriteLoader

      public SpriteLoader(Identifier id, int maxTextureSize, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/SpriteLoader;<init>(Lnet/minecraft/util/Identifier;III)V
      intermediary <init> Lnet/minecraft/class_7766;<init>(Lnet/minecraft/class_2960;III)V
      official <init> Lgqg;<init>(Lakr;III)V
  • Method Details

    • fromAtlas

      public static SpriteLoader fromAtlas(SpriteAtlasTexture atlasTexture)
      Mappings:
      Namespace Name Mixin selector
      named fromAtlas Lnet/minecraft/client/texture/SpriteLoader;fromAtlas(Lnet/minecraft/client/texture/SpriteAtlasTexture;)Lnet/minecraft/client/texture/SpriteLoader;
      intermediary method_45837 Lnet/minecraft/class_7766;method_45837(Lnet/minecraft/class_1059;)Lnet/minecraft/class_7766;
      official a Lgqg;a(Lgqk;)Lgqg;
    • stitch

      public SpriteLoader.StitchResult stitch(List<SpriteContents> sprites, int mipLevel, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named stitch Lnet/minecraft/client/texture/SpriteLoader;stitch(Ljava/util/List;ILjava/util/concurrent/Executor;)Lnet/minecraft/client/texture/SpriteLoader$StitchResult;
      intermediary method_47663 Lnet/minecraft/class_7766;method_47663(Ljava/util/List;ILjava/util/concurrent/Executor;)Lnet/minecraft/class_7766$class_7767;
      official a Lgqg;a(Ljava/util/List;ILjava/util/concurrent/Executor;)Lgqg$a;
    • loadAll

      public static CompletableFuture<List<SpriteContents>> loadAll(SpriteOpener opener, List<Function<SpriteOpener,SpriteContents>> sources, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named loadAll Lnet/minecraft/client/texture/SpriteLoader;loadAll(Lnet/minecraft/client/texture/SpriteOpener;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_47664 Lnet/minecraft/class_7766;method_47664(Lnet/minecraft/class_8684;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Lgqg;a(Lgqo;Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • load

      public CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager resourceManager, Identifier path, int mipLevel, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/texture/SpriteLoader;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_52849 Lnet/minecraft/class_7766;method_52849(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Lgqg;a(Laue;Lakr;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • load

      public CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager resourceManager, Identifier path, int mipLevel, Executor executor, Collection<ResourceMetadataReader<?>> metadatas)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/texture/SpriteLoader;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;ILjava/util/concurrent/Executor;Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_47661 Lnet/minecraft/class_7766;method_47661(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;ILjava/util/concurrent/Executor;Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
      official a Lgqg;a(Laue;Lakr;ILjava/util/concurrent/Executor;Ljava/util/Collection;)Ljava/util/concurrent/CompletableFuture;
    • collectStitchedSprites

      private Map<Identifier,Sprite> collectStitchedSprites(TextureStitcher<SpriteContents> stitcher, int atlasWidth, int atlasHeight)
      Mappings:
      Namespace Name Mixin selector
      named collectStitchedSprites Lnet/minecraft/client/texture/SpriteLoader;collectStitchedSprites(Lnet/minecraft/client/texture/TextureStitcher;II)Ljava/util/Map;
      intermediary method_45836 Lnet/minecraft/class_7766;method_45836(Lnet/minecraft/class_1055;II)Ljava/util/Map;
      official a Lgqg;a(Lgqi;II)Ljava/util/Map;