Class SpriteContents

java.lang.Object
net.minecraft.client.texture.SpriteContents
All Implemented Interfaces:
AutoCloseable, TextureStitcher.Stitchable

@Environment(CLIENT) public class SpriteContents extends Object implements TextureStitcher.Stitchable, AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/texture/SpriteContents
intermediary net/minecraft/class_7764
official gpz
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/texture/SpriteContents;LOGGER:Lorg/slf4j/Logger;
      intermediary field_40535 Lnet/minecraft/class_7764;field_40535:Lorg/slf4j/Logger;
      official a Lgpz;a:Lorg/slf4j/Logger;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/texture/SpriteContents;id:Lnet/minecraft/util/Identifier;
      intermediary field_40536 Lnet/minecraft/class_7764;field_40536:Lnet/minecraft/class_2960;
      official b Lgpz;b:Lakq;
    • width

      final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/texture/SpriteContents;width:I
      intermediary field_40537 Lnet/minecraft/class_7764;field_40537:I
      official c Lgpz;c:I
    • height

      final int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/client/texture/SpriteContents;height:I
      intermediary field_40538 Lnet/minecraft/class_7764;field_40538:I
      official d Lgpz;d:I
    • image

      private final NativeImage image
      Mappings:
      Namespace Name Mixin selector
      named image Lnet/minecraft/client/texture/SpriteContents;image:Lnet/minecraft/client/texture/NativeImage;
      intermediary field_40539 Lnet/minecraft/class_7764;field_40539:Lnet/minecraft/class_1011;
      official e Lgpz;e:Lfad;
    • mipmapLevelsImages

      NativeImage[] mipmapLevelsImages
      Mappings:
      Namespace Name Mixin selector
      named mipmapLevelsImages Lnet/minecraft/client/texture/SpriteContents;mipmapLevelsImages:[Lnet/minecraft/client/texture/NativeImage;
      intermediary field_40540 Lnet/minecraft/class_7764;field_40540:[Lnet/minecraft/class_1011;
      official f Lgpz;f:[Lfad;
    • animation

      @Nullable private final @Nullable SpriteContents.Animation animation
      Mappings:
      Namespace Name Mixin selector
      named animation Lnet/minecraft/client/texture/SpriteContents;animation:Lnet/minecraft/client/texture/SpriteContents$Animation;
      intermediary field_40541 Lnet/minecraft/class_7764;field_40541:Lnet/minecraft/class_7764$class_5790;
      official g Lgpz;g:Lgpz$a;
    • metadata

      private final ResourceMetadata metadata
      Mappings:
      Namespace Name Mixin selector
      named metadata Lnet/minecraft/client/texture/SpriteContents;metadata:Lnet/minecraft/resource/metadata/ResourceMetadata;
      intermediary field_45631 Lnet/minecraft/class_7764;field_45631:Lnet/minecraft/class_7368;
      official h Lgpz;h:Lauf;
  • Constructor Details

    • SpriteContents

      public SpriteContents(Identifier id, SpriteDimensions dimensions, NativeImage image, ResourceMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/texture/SpriteContents;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/SpriteDimensions;Lnet/minecraft/client/texture/NativeImage;Lnet/minecraft/resource/metadata/ResourceMetadata;)V
      intermediary <init> Lnet/minecraft/class_7764;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7771;Lnet/minecraft/class_1011;Lnet/minecraft/class_7368;)V
      official <init> Lgpz;<init>(Lakq;Lgrs;Lfad;Lauf;)V
  • Method Details

    • generateMipmaps

      public void generateMipmaps(int mipmapLevels)
      Mappings:
      Namespace Name Mixin selector
      named generateMipmaps Lnet/minecraft/client/texture/SpriteContents;generateMipmaps(I)V
      intermediary method_45808 Lnet/minecraft/class_7764;method_45808(I)V
      official a Lgpz;a(I)V
    • getFrameCount

      private int getFrameCount()
      Mappings:
      Namespace Name Mixin selector
      named getFrameCount Lnet/minecraft/client/texture/SpriteContents;getFrameCount()I
      intermediary method_45819 Lnet/minecraft/class_7764;method_45819()I
      official g Lgpz;g()I
    • createAnimation

      @Nullable private @Nullable SpriteContents.Animation createAnimation(SpriteDimensions dimensions, int imageWidth, int imageHeight, AnimationResourceMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      named createAnimation Lnet/minecraft/client/texture/SpriteContents;createAnimation(Lnet/minecraft/client/texture/SpriteDimensions;IILnet/minecraft/client/resource/metadata/AnimationResourceMetadata;)Lnet/minecraft/client/texture/SpriteContents$Animation;
      intermediary method_45812 Lnet/minecraft/class_7764;method_45812(Lnet/minecraft/class_7771;IILnet/minecraft/class_1079;)Lnet/minecraft/class_7764$class_5790;
      official a Lgpz;a(Lgrs;IILgrq;)Lgpz$a;
    • upload

      void upload(int x, int y, int unpackSkipPixels, int unpackSkipRows, NativeImage[] images)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/texture/SpriteContents;upload(IIII[Lnet/minecraft/client/texture/NativeImage;)V
      intermediary method_45811 Lnet/minecraft/class_7764;method_45811(IIII[Lnet/minecraft/class_1011;)V
      official a Lgpz;a(IIII[Lfad;)V
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface TextureStitcher.Stitchable
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getWidth()I
      intermediary method_45807 Lnet/minecraft/class_1055$class_7769;method_45807()I
      official a Lgqc$a;a()I
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface TextureStitcher.Stitchable
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getHeight()I
      intermediary method_45815 Lnet/minecraft/class_1055$class_7769;method_45815()I
      official b Lgqc$a;b()I
    • getId

      public Identifier getId()
      Specified by:
      getId in interface TextureStitcher.Stitchable
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/client/texture/TextureStitcher$Stitchable;getId()Lnet/minecraft/util/Identifier;
      intermediary method_45816 Lnet/minecraft/class_1055$class_7769;method_45816()Lnet/minecraft/class_2960;
      official c Lgqc$a;c()Lakq;
    • getDistinctFrameCount

      public IntStream getDistinctFrameCount()
      Mappings:
      Namespace Name Mixin selector
      named getDistinctFrameCount Lnet/minecraft/client/texture/SpriteContents;getDistinctFrameCount()Ljava/util/stream/IntStream;
      intermediary method_45817 Lnet/minecraft/class_7764;method_45817()Ljava/util/stream/IntStream;
      official d Lgpz;d()Ljava/util/stream/IntStream;
    • createAnimator

      @Nullable public @Nullable Animator createAnimator()
      Mappings:
      Namespace Name Mixin selector
      named createAnimator Lnet/minecraft/client/texture/SpriteContents;createAnimator()Lnet/minecraft/client/texture/Animator;
      intermediary method_45818 Lnet/minecraft/class_7764;method_45818()Lnet/minecraft/class_7768;
      official e Lgpz;e()Lgqb;
    • getMetadata

      public ResourceMetadata getMetadata()
      Mappings:
      Namespace Name Mixin selector
      named getMetadata Lnet/minecraft/client/texture/SpriteContents;getMetadata()Lnet/minecraft/resource/metadata/ResourceMetadata;
      intermediary method_52848 Lnet/minecraft/class_7764;method_52848()Lnet/minecraft/class_7368;
      official f Lgpz;f()Lauf;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isPixelTransparent

      public boolean isPixelTransparent(int frame, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named isPixelTransparent Lnet/minecraft/client/texture/SpriteContents;isPixelTransparent(III)Z
      intermediary method_45810 Lnet/minecraft/class_7764;method_45810(III)Z
      official a Lgpz;a(III)Z
    • upload

      public void upload(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named upload Lnet/minecraft/client/texture/SpriteContents;upload(II)V
      intermediary method_45809 Lnet/minecraft/class_7764;method_45809(II)V
      official a Lgpz;a(II)V