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 hen$c
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private final NativeImage[]
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    (package private) void
    apply(int x, int y, SpriteContents.AnimatorImpl animator)
    Linearly interpolate between the current and next frame on all mip levels based on the tick position within the current frame, and upload the results to the currently bound texture to the frame slot at position (0,0).
    void
     
    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.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • images Link icon

      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 Lhen$c;b:[Lfev;
  • Constructor Details Link icon

    • Interpolation Link icon

      Interpolation()
  • Method Details Link icon

    • apply Link icon

      void apply(int x, int y, SpriteContents.AnimatorImpl animator)
      Linearly interpolate between the current and next frame on all mip levels based on the tick position within the current frame, and upload the results to the currently bound texture to the frame slot at position (0,0).
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/client/texture/SpriteContents$Interpolation;apply(IILnet/minecraft/client/texture/SpriteContents$AnimatorImpl;)V
      intermediary method_24128 Lnet/minecraft/class_7764$class_4728;method_24128(IILnet/minecraft/class_7764$class_7765;)V
      official a Lhen$c;a(IILhen$d;)V
    • getPixelColor Link icon

      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 Lhen$c;a(Lhen$a;IIII)I
    • close Link icon

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