Class SpriteAtlasTexture

java.lang.Object
net.minecraft.client.texture.AbstractTexture
net.minecraft.client.texture.SpriteAtlasTexture
All Implemented Interfaces:
AutoCloseable, DynamicTexture, TextureTickListener

@Environment(CLIENT) public class SpriteAtlasTexture extends AbstractTexture implements DynamicTexture, TextureTickListener
Mappings:
Namespace Name
named net/minecraft/client/texture/SpriteAtlasTexture
intermediary net/minecraft/class_1059
official hbj
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/texture/SpriteAtlasTexture;LOGGER:Lorg/slf4j/Logger;
      intermediary field_5278 Lnet/minecraft/class_1059;field_5278:Lorg/slf4j/Logger;
      official f Lhbj;f:Lorg/slf4j/Logger;
    • BLOCK_ATLAS_TEXTURE

      @Deprecated public static final Identifier BLOCK_ATLAS_TEXTURE
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_ATLAS_TEXTURE Lnet/minecraft/client/texture/SpriteAtlasTexture;BLOCK_ATLAS_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_5275 Lnet/minecraft/class_1059;field_5275:Lnet/minecraft/class_2960;
      official d Lhbj;d:Lalz;
    • PARTICLE_ATLAS_TEXTURE

      @Deprecated public static final Identifier PARTICLE_ATLAS_TEXTURE
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named PARTICLE_ATLAS_TEXTURE Lnet/minecraft/client/texture/SpriteAtlasTexture;PARTICLE_ATLAS_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_17898 Lnet/minecraft/class_1059;field_17898:Lnet/minecraft/class_2960;
      official e Lhbj;e:Lalz;
    • spritesToLoad

      private List<SpriteContents> spritesToLoad
      Mappings:
      Namespace Name Mixin selector
      named spritesToLoad Lnet/minecraft/client/texture/SpriteAtlasTexture;spritesToLoad:Ljava/util/List;
      intermediary field_5277 Lnet/minecraft/class_1059;field_5277:Ljava/util/List;
      official g Lhbj;g:Ljava/util/List;
    • animatedSprites

      private List<Sprite.TickableAnimation> animatedSprites
      Mappings:
      Namespace Name Mixin selector
      named animatedSprites Lnet/minecraft/client/texture/SpriteAtlasTexture;animatedSprites:Ljava/util/List;
      intermediary field_5276 Lnet/minecraft/class_1059;field_5276:Ljava/util/List;
      official h Lhbj;h:Ljava/util/List;
    • sprites

      private Map<Identifier,Sprite> sprites
      Mappings:
      Namespace Name Mixin selector
      named sprites Lnet/minecraft/client/texture/SpriteAtlasTexture;sprites:Ljava/util/Map;
      intermediary field_5280 Lnet/minecraft/class_1059;field_5280:Ljava/util/Map;
      official i Lhbj;i:Ljava/util/Map;
    • missingSprite

      @Nullable private @Nullable Sprite missingSprite
      Mappings:
      Namespace Name Mixin selector
      named missingSprite Lnet/minecraft/client/texture/SpriteAtlasTexture;missingSprite:Lnet/minecraft/client/texture/Sprite;
      intermediary field_46207 Lnet/minecraft/class_1059;field_46207:Lnet/minecraft/class_1058;
      official j Lhbj;j:Lhbk;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/texture/SpriteAtlasTexture;id:Lnet/minecraft/util/Identifier;
      intermediary field_21749 Lnet/minecraft/class_1059;field_21749:Lnet/minecraft/class_2960;
      official k Lhbj;k:Lalz;
    • maxTextureSize

      private final int maxTextureSize
      Mappings:
      Namespace Name Mixin selector
      named maxTextureSize Lnet/minecraft/client/texture/SpriteAtlasTexture;maxTextureSize:I
      intermediary field_17899 Lnet/minecraft/class_1059;field_17899:I
      official l Lhbj;l:I
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/texture/SpriteAtlasTexture;width:I
      intermediary field_43113 Lnet/minecraft/class_1059;field_43113:I
      official m Lhbj;m:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/client/texture/SpriteAtlasTexture;height:I
      intermediary field_43114 Lnet/minecraft/class_1059;field_43114:I
      official n Lhbj;n:I
    • mipLevel

      private int mipLevel
      Mappings:
      Namespace Name Mixin selector
      named mipLevel Lnet/minecraft/client/texture/SpriteAtlasTexture;mipLevel:I
      intermediary field_43115 Lnet/minecraft/class_1059;field_43115:I
      official o Lhbj;o:I
  • Constructor Details

    • SpriteAtlasTexture

      public SpriteAtlasTexture(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/SpriteAtlasTexture;<init>(Lnet/minecraft/util/Identifier;)V
      intermediary <init> Lnet/minecraft/class_1059;<init>(Lnet/minecraft/class_2960;)V
      official <init> Lhbj;<init>(Lalz;)V
  • Method Details

    • load

      public void load(ResourceManager manager)
      Specified by:
      load in class AbstractTexture
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/texture/AbstractTexture;load(Lnet/minecraft/resource/ResourceManager;)V
      intermediary method_4625 Lnet/minecraft/class_1044;method_4625(Lnet/minecraft/class_3300;)V
      official a Lhav;a(Lavv;)V
    • upload

      public void upload(SpriteLoader.StitchResult stitchResult)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/texture/SpriteAtlasTexture;upload(Lnet/minecraft/client/texture/SpriteLoader$StitchResult;)V
      intermediary method_45848 Lnet/minecraft/class_1059;method_45848(Lnet/minecraft/class_7766$class_7767;)V
      official a Lhbj;a(Lhbf$a;)V
    • save

      public void save(Identifier id, Path path) throws IOException
      Specified by:
      save in interface DynamicTexture
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named save Lnet/minecraft/client/texture/DynamicTexture;save(Lnet/minecraft/util/Identifier;Ljava/nio/file/Path;)V
      intermediary method_49712 Lnet/minecraft/class_8215;method_49712(Lnet/minecraft/class_2960;Ljava/nio/file/Path;)V
      official a Lhaw;a(Lalz;Ljava/nio/file/Path;)V
    • dumpAtlasInfos

      private static void dumpAtlasInfos(Path path, String id, Map<Identifier,Sprite> sprites)
      Mappings:
      Namespace Name Mixin selector
      named dumpAtlasInfos Lnet/minecraft/client/texture/SpriteAtlasTexture;dumpAtlasInfos(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
      intermediary method_45849 Lnet/minecraft/class_1059;method_45849(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
      official a Lhbj;a(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
    • tickAnimatedSprites

      public void tickAnimatedSprites()
      Mappings:
      Namespace Name Mixin selector
      named tickAnimatedSprites Lnet/minecraft/client/texture/SpriteAtlasTexture;tickAnimatedSprites()V
      intermediary method_4612 Lnet/minecraft/class_1059;method_4612()V
      official e Lhbj;e()V
    • tick

      public void tick()
      Specified by:
      tick in interface TextureTickListener
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/texture/TextureTickListener;tick()V
      intermediary method_4622 Lnet/minecraft/class_1061;method_4622()V
      official f Lhbm;f()V
    • getSprite

      public Sprite getSprite(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named getSprite Lnet/minecraft/client/texture/SpriteAtlasTexture;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;
      intermediary method_4608 Lnet/minecraft/class_1059;method_4608(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;
      official a Lhbj;a(Lalz;)Lhbk;
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/texture/SpriteAtlasTexture;clear()V
      intermediary method_4601 Lnet/minecraft/class_1059;method_4601()V
      official g Lhbj;g()V
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/client/texture/SpriteAtlasTexture;getId()Lnet/minecraft/util/Identifier;
      intermediary method_24106 Lnet/minecraft/class_1059;method_24106()Lnet/minecraft/class_2960;
      official h Lhbj;h()Lalz;
    • getMaxTextureSize

      public int getMaxTextureSize()
      Mappings:
      Namespace Name Mixin selector
      named getMaxTextureSize Lnet/minecraft/client/texture/SpriteAtlasTexture;getMaxTextureSize()I
      intermediary method_45850 Lnet/minecraft/class_1059;method_45850()I
      official i Lhbj;i()I
    • getWidth

      int getWidth()
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/texture/SpriteAtlasTexture;getWidth()I
      intermediary method_49713 Lnet/minecraft/class_1059;method_49713()I
      official j Lhbj;j()I
    • getHeight

      int getHeight()
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/texture/SpriteAtlasTexture;getHeight()I
      intermediary method_49714 Lnet/minecraft/class_1059;method_49714()I
      official k Lhbj;k()I
    • applyTextureFilter

      public void applyTextureFilter(SpriteLoader.StitchResult data)
      Mappings:
      Namespace Name Mixin selector
      named applyTextureFilter Lnet/minecraft/client/texture/SpriteAtlasTexture;applyTextureFilter(Lnet/minecraft/client/texture/SpriteLoader$StitchResult;)V
      intermediary method_24198 Lnet/minecraft/class_1059;method_24198(Lnet/minecraft/class_7766$class_7767;)V
      official b Lhbj;b(Lhbf$a;)V