类 Sprite.Interpolation
- java.lang.Object
-
- net.minecraft.client.texture.Sprite.Interpolation
-
- 所有已实现的接口:
AutoCloseable
- 封闭类:
- Sprite
@Environment(CLIENT) final class Sprite.Interpolation extends Object implements AutoCloseable
- Mappings:
Namespace Name official ewd$dintermediary net/minecraft/class_1058$class_4728named net/minecraft/client/texture/Sprite$Interpolation
-
-
字段概要
字段 修饰符和类型 字段 说明 private NativeImage[]images
-
构造器概要
构造器 限定符 构造器 说明 privateInterpolation(Sprite.Info info, int mipmap)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidapply(Sprite.Animation animation)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(Sprite.Animation animation, int frameIndex, int int2, int int3, int int4)Returns the pixel color at frameframeIndexwithin mipmaplayerat sprite relative coordinates.private intlerp(double delta, int to, int from)Purely mathematical single-value linear interpolation.
-
-
-
字段详细资料
-
images
private final NativeImage[] images
- Mappings:
Namespace Name Mixin selector official bLewd$d;b:[Ldoj;intermediary field_21758Lnet/minecraft/class_1058$class_4728;field_21758:[Lnet/minecraft/class_1011;named imagesLnet/minecraft/client/texture/Sprite$Interpolation;images:[Lnet/minecraft/client/texture/NativeImage;
-
-
构造器详细资料
-
Interpolation
private Interpolation(Sprite.Info info, int mipmap)
- Mappings:
Namespace Name Mixin selector official <init>Lewd$d;<init>(Lewd;Lewd$c;I)Vintermediary <init>Lnet/minecraft/class_1058$class_4728;<init>(Lnet/minecraft/class_1058;Lnet/minecraft/class_1058$class_4727;I)Vnamed <init>Lnet/minecraft/client/texture/Sprite$Interpolation;<init>(Lnet/minecraft/client/texture/Sprite;Lnet/minecraft/client/texture/Sprite$Info;I)V
-
-
方法详细资料
-
apply
private void apply(Sprite.Animation animation)
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 aLewd$d;a(Lewd$a;)Vintermediary method_24128Lnet/minecraft/class_1058$class_4728;method_24128(Lnet/minecraft/class_1058$class_5790;)Vnamed applyLnet/minecraft/client/texture/Sprite$Interpolation;apply(Lnet/minecraft/client/texture/Sprite$Animation;)V
-
getPixelColor
private int getPixelColor(Sprite.Animation animation, int frameIndex, int int2, int int3, int int4)
Returns the pixel color at frameframeIndexwithin mipmaplayerat sprite relative coordinates.- Mappings:
Namespace Name Mixin selector official aLewd$d;a(Lewd$a;IIII)Iintermediary method_24130Lnet/minecraft/class_1058$class_4728;method_24130(Lnet/minecraft/class_1058$class_5790;IIII)Inamed getPixelColorLnet/minecraft/client/texture/Sprite$Interpolation;getPixelColor(Lnet/minecraft/client/texture/Sprite$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 aLewd$d;a(DII)Iintermediary method_24129Lnet/minecraft/class_1058$class_4728;method_24129(DII)Inamed lerpLnet/minecraft/client/texture/Sprite$Interpolation;lerp(DII)I
-
close
public void close()
- 指定者:
close在接口中AutoCloseable- Mappings:
Namespace Name Mixin selector official closeLewd$d;close()Vintermediary closeLnet/minecraft/class_1058$class_4728;close()Vnamed closeLnet/minecraft/client/texture/Sprite$Interpolation;close()V
-
-