Class SpriteLoader

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

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

    • LOGGER

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

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

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

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

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

    • SpriteLoader

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

    • fromAtlas

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

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

      public static CompletableFuture<List<SpriteContents>> loadAll(List<Supplier<SpriteContents>> sources, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      official a Lfsx;a(Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_47664 Lnet/minecraft/class_7766;method_47664(Ljava/util/List;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      named loadAll Lnet/minecraft/client/texture/SpriteLoader;loadAll(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
      official a Lfsx;a(Lalh;Ladd;ILjava/util/concurrent/Executor;)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/concurrent/CompletableFuture;
      named load Lnet/minecraft/client/texture/SpriteLoader;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;ILjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • load

      @Nullable public static @Nullable SpriteContents load(Identifier id, Resource resource)
      Mappings:
      Namespace Name Mixin selector
      official a Lfsx;a(Ladd;Lalf;)Lfsw;
      intermediary method_45829 Lnet/minecraft/class_7766;method_45829(Lnet/minecraft/class_2960;Lnet/minecraft/class_3298;)Lnet/minecraft/class_7764;
      named load Lnet/minecraft/client/texture/SpriteLoader;load(Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/Resource;)Lnet/minecraft/client/texture/SpriteContents;
    • collectStitchedSprites

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