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
official fof
intermediary net/minecraft/class_7764
named net/minecraft/client/texture/SpriteContents
  • Field Details

    • LOGGER

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

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

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

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

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

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

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

    • SpriteContents

      public SpriteContents(Identifier id, SpriteDimensions dimensions, NativeImage image, AnimationResourceMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfof;<init>(Lacf;Lfpv;Lede;Lfpt;)V
      intermediary <init> Lnet/minecraft/class_7764;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7771;Lnet/minecraft/class_1011;Lnet/minecraft/class_1079;)V
      named <init> Lnet/minecraft/client/texture/SpriteContents;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/texture/SpriteDimensions;Lnet/minecraft/client/texture/NativeImage;Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;)V
  • Method Details

    • generateMipmaps

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

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

      @Nullable private @Nullable SpriteContents.Animation createAnimation(SpriteDimensions dimensions, int imageWidth, int imageHeight, AnimationResourceMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      official a Lfof;a(Lfpv;IILfpt;)Lfof$a;
      intermediary method_45812 Lnet/minecraft/class_7764;method_45812(Lnet/minecraft/class_7771;IILnet/minecraft/class_1079;)Lnet/minecraft/class_7764$class_5790;
      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;
    • upload

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

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

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

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

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

      @Nullable public @Nullable Animator createAnimator()
      Mappings:
      Namespace Name Mixin selector
      official e Lfof;e()Lfoh;
      intermediary method_45818 Lnet/minecraft/class_7764;method_45818()Lnet/minecraft/class_7768;
      named createAnimator Lnet/minecraft/client/texture/SpriteContents;createAnimator()Lnet/minecraft/client/texture/Animator;
    • 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
      official a Lfof;a(III)Z
      intermediary method_45810 Lnet/minecraft/class_7764;method_45810(III)Z
      named isPixelTransparent Lnet/minecraft/client/texture/SpriteContents;isPixelTransparent(III)Z
    • upload

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