Class SpriteAtlasHolder

All Implemented Interfaces:
AutoCloseable, ResourceReloadListener
Direct Known Subclasses:
PaintingManager, StatusEffectSpriteManager

@Environment(CLIENT)
public abstract class SpriteAtlasHolder
extends SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>
implements AutoCloseable
Mappings:
Namespace Name
official esm
intermediary net/minecraft/class_4075
named net/minecraft/client/texture/SpriteAtlasHolder
  • Field Details

    • atlas

      private final SpriteAtlasTexture atlas
      Mappings:
      Namespace Name Mixin selector
      official a Lesm;a:Lert;
      intermediary field_18230 Lnet/minecraft/class_4075;field_18230:Lnet/minecraft/class_1059;
      named atlas Lnet/minecraft/client/texture/SpriteAtlasHolder;atlas:Lnet/minecraft/client/texture/SpriteAtlasTexture;
    • pathPrefix

      private final String pathPrefix
      Mappings:
      Namespace Name Mixin selector
      official b Lesm;b:Ljava/lang/String;
      intermediary field_21767 Lnet/minecraft/class_4075;field_21767:Ljava/lang/String;
      named pathPrefix Lnet/minecraft/client/texture/SpriteAtlasHolder;pathPrefix:Ljava/lang/String;
  • Constructor Details

    • SpriteAtlasHolder

      public SpriteAtlasHolder​(TextureManager textureManager, Identifier atlasId, String pathPrefix)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesm;<init>(Lerv;Lwb;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4075;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/texture/SpriteAtlasHolder;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;Ljava/lang/String;)V
  • Method Details

    • getSprites

      protected abstract Stream<Identifier> getSprites()
      Mappings:
      Namespace Name Mixin selector
      official a Lesm;a()Ljava/util/stream/Stream;
      intermediary method_18665 Lnet/minecraft/class_4075;method_18665()Ljava/util/stream/Stream;
      named getSprites Lnet/minecraft/client/texture/SpriteAtlasHolder;getSprites()Ljava/util/stream/Stream;
    • getSprite

      protected Sprite getSprite​(Identifier objectId)
      Mappings:
      Namespace Name Mixin selector
      official a Lesm;a(Lwb;)Leru;
      intermediary method_18667 Lnet/minecraft/class_4075;method_18667(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;
      named getSprite Lnet/minecraft/client/texture/SpriteAtlasHolder;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;
    • toSpriteId

      private Identifier toSpriteId​(Identifier objectId)
      Mappings:
      Namespace Name Mixin selector
      official b Lesm;b(Lwb;)Lwb;
      intermediary method_24140 Lnet/minecraft/class_4075;method_24140(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
      named toSpriteId Lnet/minecraft/client/texture/SpriteAtlasHolder;toSpriteId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
    • prepare

      protected SpriteAtlasTexture.Data prepare​(ResourceManager resourceManager, Profiler profiler)
      Specified by:
      prepare in class SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>
      Mappings:
      Namespace Name Mixin selector
      official a Lesm;a(Lacx;Laos;)Lert$a;
      intermediary method_18668 Lnet/minecraft/class_4075;method_18668(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_1059$class_4007;
      named prepare Lnet/minecraft/client/texture/SpriteAtlasHolder;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/texture/SpriteAtlasTexture$Data;
    • apply

      protected void apply​(SpriteAtlasTexture.Data data, ResourceManager resourceManager, Profiler profiler)
      Specified by:
      apply in class SinglePreparationResourceReloadListener<SpriteAtlasTexture.Data>
      Mappings:
      Namespace Name Mixin selector
      official a Lesm;a(Lert$a;Lacx;Laos;)V
      intermediary method_18666 Lnet/minecraft/class_4075;method_18666(Lnet/minecraft/class_1059$class_4007;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
      named apply Lnet/minecraft/client/texture/SpriteAtlasHolder;apply(Lnet/minecraft/client/texture/SpriteAtlasTexture$Data;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Mappings:
      Namespace Name Mixin selector
      official close Lesm;close()V
      intermediary close Lnet/minecraft/class_4075;close()V
      named close Lnet/minecraft/client/texture/SpriteAtlasHolder;close()V