Class Sprite.Interpolation

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

@Environment(CLIENT)
final class Sprite.Interpolation
extends Object
implements AutoCloseable
  • Field Details

  • Constructor Details

    • Interpolation

      private Interpolation​(Sprite.Info info, int mipmap)
  • Method Details

    • apply

      private void apply​(Sprite.class_5790 class_5790)
    • getPixelColor

      private int getPixelColor​(Sprite.class_5790 class_5790, int int2, int int3, int int4, int int5)
    • lerp

      private int lerp​(double delta, int to, int from)
      Purely mathematical single-value linear interpolation. lerp(0, a, b) == b, lerp(1, a, b) == a.
    • close

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