Package net.minecraft.client.texture
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 - official - fup$c- intermediary - net/minecraft/class_7764$class_4728- named - net/minecraft/client/texture/SpriteContents$Interpolation
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription(package private) voidapply(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).voidclose()private intgetPixelColor(SpriteContents.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 - b- Lfup$c;b:[Lehk;- intermediary - field_21758- Lnet/minecraft/class_7764$class_4728;field_21758:[Lnet/minecraft/class_1011;- named - images- Lnet/minecraft/client/texture/SpriteContents$Interpolation;images:[Lnet/minecraft/client/texture/NativeImage;
 
 
- 
- 
Constructor Details- 
InterpolationInterpolation()
 
- 
- 
Method Details- 
applyLinearly 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 - a- Lfup$c;a(IILfup$d;)V- intermediary - method_24128- Lnet/minecraft/class_7764$class_4728;method_24128(IILnet/minecraft/class_7764$class_7765;)V- named - apply- Lnet/minecraft/client/texture/SpriteContents$Interpolation;apply(IILnet/minecraft/client/texture/SpriteContents$AnimatorImpl;)V
 
- 
getPixelColorprivate int getPixelColor(SpriteContents.Animation animation, int frameIndex, int layer, int x, int y) 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 - a- Lfup$c;a(Lfup$a;IIII)I- intermediary - method_24130- Lnet/minecraft/class_7764$class_4728;method_24130(Lnet/minecraft/class_7764$class_5790;IIII)I- named - getPixelColor- Lnet/minecraft/client/texture/SpriteContents$Interpolation;getPixelColor(Lnet/minecraft/client/texture/SpriteContents$Animation;IIII)I
 
- 
lerpprivate 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 - a- Lfup$c;a(DII)I- intermediary - method_24129- Lnet/minecraft/class_7764$class_4728;method_24129(DII)I- named - lerp- Lnet/minecraft/client/texture/SpriteContents$Interpolation;lerp(DII)I
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-