Class SpriteAtlasHolder

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

@Environment(CLIENT) public abstract class SpriteAtlasHolder extends SinglePreparationResourceReloader<SpriteAtlasTexture.Data> implements AutoCloseable
Mappings:
Namespace Name
official fbq
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 Lfbq;a:Lfax;
      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 Lfbq;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> Lfbq;<init>(Lfaz;Lyt;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 Lfbq;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 Lfbq;a(Lyt;)Lfay;
      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 Lfbq;b(Lyt;)Lyt;
      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)
      Description copied from class: SinglePreparationResourceReloader
      Prepares the intermediate object.

      This method is called in the prepare executor in a reload.

      Specified by:
      prepare in class SinglePreparationResourceReloader<SpriteAtlasTexture.Data>
      Parameters:
      resourceManager - the resource manager
      profiler - the prepare profiler
      Returns:
      the prepared object
      Mappings:
      Namespace Name Mixin selector
      official a Lfbq;a(Laga;Lasy;)Lfax$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)
      Description copied from class: SinglePreparationResourceReloader
      Handles the prepared intermediate object.

      This method is called in the apply executor, or the game engine, in a reload.

      Specified by:
      apply in class SinglePreparationResourceReloader<SpriteAtlasTexture.Data>
      Parameters:
      data - the prepared object
      resourceManager - the resource manager
      profiler - the apply profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lfbq;a(Lfax$a;Laga;Lasy;)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