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
official ftb
intermediary net/minecraft/class_1059
named net/minecraft/client/texture/SpriteAtlasTexture
  • Field Details

    • LOGGER

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

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

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

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

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

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

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

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

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

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

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

    • SpriteAtlasTexture

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

    • load

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

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

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

      private static void dumpAtlasInfos(Path path, String id, Map<Identifier,Sprite> sprites)
      Mappings:
      Namespace Name Mixin selector
      official a Lftb;a(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
      named dumpAtlasInfos Lnet/minecraft/client/texture/SpriteAtlasTexture;dumpAtlasInfos(Ljava/nio/file/Path;Ljava/lang/String;Ljava/util/Map;)V
    • tickAnimatedSprites

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

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

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

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

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

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

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

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

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