Class SpriteContents.Interpolation

java.lang.Object
net.minecraft.client.texture.SpriteContents.Interpolation
All Implemented Interfaces:
AutoCloseable
Enclosing class:
SpriteContents

@Environment(CLIENT) private final class SpriteContents.Interpolation extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/texture/SpriteContents$Interpolation
intermediary net/minecraft/class_7764$class_4728
official hrk$c
  • Field Details

    • images

      private final NativeImage[] images
      Mappings:
      Namespace Name Mixin selector
      named images Lnet/minecraft/client/texture/SpriteContents$Interpolation;images:[Lnet/minecraft/client/texture/NativeImage;
      intermediary field_21758 Lnet/minecraft/class_7764$class_4728;field_21758:[Lnet/minecraft/class_1011;
      official b Lhrk$c;b:[Lfne;
  • Constructor Details

    • Interpolation

      Interpolation()
  • Method Details

    • method_24128

      void method_24128(int int2, int int3, SpriteContents.AnimatorImpl animatorImpl, GpuTexture gpuTexture)
      Mappings:
      Namespace Name Mixin selector
      named method_24128 Lnet/minecraft/client/texture/SpriteContents$Interpolation;method_24128(IILnet/minecraft/client/texture/SpriteContents$AnimatorImpl;Lcom/mojang/blaze3d/textures/GpuTexture;)V
      intermediary method_24128 Lnet/minecraft/class_7764$class_4728;method_24128(IILnet/minecraft/class_7764$class_7765;Lcom/mojang/blaze3d/textures/GpuTexture;)V
      official a Lhrk$c;a(IILhrk$d;Lcom/mojang/blaze3d/textures/GpuTexture;)V
    • getPixelColor

      private int getPixelColor(SpriteContents.Animation animation, int frameIndex, int layer, int x, int y)
      Returns the pixel color at frame frameIndex within mipmap layer at sprite relative coordinates.
      Returns:
      the pixel color at frame frameIndex within mipmap layer at sprite relative coordinates
      Mappings:
      Namespace Name Mixin selector
      named getPixelColor Lnet/minecraft/client/texture/SpriteContents$Interpolation;getPixelColor(Lnet/minecraft/client/texture/SpriteContents$Animation;IIII)I
      intermediary method_24130 Lnet/minecraft/class_7764$class_4728;method_24130(Lnet/minecraft/class_7764$class_5790;IIII)I
      official a Lhrk$c;a(Lhrk$a;IIII)I
    • close

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