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 fyy
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 Lfyy;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 Lfyy;b:Laew;
      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 Lfyy;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 Lfyy;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 Lfyy;e:Lekq;
      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 Lfyy;f:[Lekq;
      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 Lfyy;g:Lfyy$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;
    • metadata

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

    • SpriteContents

      public SpriteContents(Identifier id, SpriteDimensions dimensions, NativeImage image, ResourceMetadata metadata)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfyy;<init>(Laew;Lgar;Lekq;Lanv;)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
      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
  • Method Details

    • generateMipmaps

      public void generateMipmaps(int mipmapLevels)
      Mappings:
      Namespace Name Mixin selector
      official a Lfyy;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 g Lfyy;g()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 Lfyy;a(Lgar;IILgap;)Lfyy$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 Lfyy;a(IIII[Lekq;)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 Lfzb$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 Lfzb$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 Lfzb$a;c()Laew;
      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 Lfyy;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 Lfyy;e()Lfza;
      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;
    • getMetadata

      public ResourceMetadata getMetadata()
      Mappings:
      Namespace Name Mixin selector
      official f Lfyy;f()Lanv;
      intermediary method_52848 Lnet/minecraft/class_7764;method_52848()Lnet/minecraft/class_7368;
      named getMetadata Lnet/minecraft/client/texture/SpriteContents;getMetadata()Lnet/minecraft/resource/metadata/ResourceMetadata;
    • 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 Lfyy;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 Lfyy;a(II)V
      intermediary method_45809 Lnet/minecraft/class_7764;method_45809(II)V
      named upload Lnet/minecraft/client/texture/SpriteContents;upload(II)V