Class SpriteAtlasTexture

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

@Environment(CLIENT) public class SpriteAtlasTexture extends AbstractTexture implements TextureTickListener
Mappings:
Namespace Name
official fok
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 Lfok;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 Lfok;e:Lacf;
      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 Lfok;f:Lacf;
      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 Lfok;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 Lfok;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 Lfok;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 Lfok;k:Lacf;
      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 Lfok;l:I
      intermediary field_17899 Lnet/minecraft/class_1059;field_17899:I
      named maxTextureSize Lnet/minecraft/client/texture/SpriteAtlasTexture;maxTextureSize:I
  • Constructor Details

    • SpriteAtlasTexture

      public SpriteAtlasTexture(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfok;<init>(Lacf;)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 Lfnx;a(Lake;)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 Lfok;a(Lfog$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
    • dumpAtlasTextureAndInfo

      private void dumpAtlasTextureAndInfo(int scales, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Lfok;a(III)V
      intermediary method_45847 Lnet/minecraft/class_1059;method_45847(III)V
      named dumpAtlasTextureAndInfo Lnet/minecraft/client/texture/SpriteAtlasTexture;dumpAtlasTextureAndInfo(III)V
    • dumpAtlasInfos

      private static void dumpAtlasInfos(Path path, String string, Map<Identifier,Sprite> map)
      Mappings:
      Namespace Name Mixin selector
      official a Lfok;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 Lfok;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 Lfon;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 Lfok;a(Lacf;)Lfol;
      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 Lfok;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 Lfok;g()Lacf;
      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 Lfok;h()I
      intermediary method_45850 Lnet/minecraft/class_1059;method_45850()I
      named getMaxTextureSize Lnet/minecraft/client/texture/SpriteAtlasTexture;getMaxTextureSize()I
    • applyTextureFilter

      public void applyTextureFilter(SpriteLoader.StitchResult data)
      Mappings:
      Namespace Name Mixin selector
      official b Lfok;b(Lfog$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