Package net.minecraft.client.texture
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 Summary
Fields Modifier and Type Field Description private NativeImage[]images -
Constructor Summary
Constructors Modifier Constructor Description privateInterpolation(Sprite.Info info, int mipmap) -
Method Summary
Modifier and Type Method Description private voidapply(Sprite.class_5790 class_5790)voidclose()private intgetPixelColor(Sprite.class_5790 class_5790, int int2, int int3, int int4, int int5)private intlerp(double delta, int to, int from)Purely mathematical single-value linear interpolation.
-
Field Details
-
images
-
-
Constructor Details
-
Interpolation
-
-
Method Details
-
apply
-
getPixelColor
-
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:
closein interfaceAutoCloseable
-