Package net.minecraft
Class class_7764.Interpolation
java.lang.Object
net.minecraft.class_7764.Interpolation
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
class_7764
@Environment(CLIENT)
private final class class_7764.Interpolation
extends Object
implements AutoCloseable
- Mappings:
Namespace Name official fmq$cintermediary net/minecraft/class_7764$class_4728named net/minecraft/class_7764$Interpolation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidapply(int int2, int int3, class_7764.class_7765 class_7765) 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).voidclose()private intgetPixelColor(class_7764.Animation animation, int frameIndex, int layer, int x, int y) Returns the pixel color at frameframeIndexwithin mipmaplayerat sprite relative coordinates.private intlerp(double delta, int to, int from) Purely mathematical single-value linear interpolation.
-
Field Details
-
images
- Mappings:
Namespace Name Mixin selector official bLfmq$c;b:[Lece;intermediary field_21758Lnet/minecraft/class_7764$class_4728;field_21758:[Lnet/minecraft/class_1011;named imagesLnet/minecraft/class_7764$Interpolation;images:[Lnet/minecraft/client/texture/NativeImage;
-
-
Constructor Details
-
Interpolation
Interpolation()
-
-
Method Details
-
apply
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 official aLfmq$c;a(IILfmq$d;)Vintermediary method_24128Lnet/minecraft/class_7764$class_4728;method_24128(IILnet/minecraft/class_7764$class_7765;)Vnamed applyLnet/minecraft/class_7764$Interpolation;apply(IILnet/minecraft/class_7764$class_7765;)V
-
getPixelColor
Returns the pixel color at frameframeIndexwithin mipmaplayerat sprite relative coordinates.- Returns:
- the pixel color at frame
frameIndexwithin mipmaplayerat sprite relative coordinates - Mappings:
Namespace Name Mixin selector official aLfmq$c;a(Lfmq$a;IIII)Iintermediary method_24130Lnet/minecraft/class_7764$class_4728;method_24130(Lnet/minecraft/class_7764$class_5790;IIII)Inamed getPixelColorLnet/minecraft/class_7764$Interpolation;getPixelColor(Lnet/minecraft/class_7764$Animation;IIII)I
-
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.- Mappings:
Namespace Name Mixin selector official aLfmq$c;a(DII)Iintermediary method_24129Lnet/minecraft/class_7764$class_4728;method_24129(DII)Inamed lerpLnet/minecraft/class_7764$Interpolation;lerp(DII)I
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-