Interface Interpolation
- All Known Implementing Classes:
BezierInterpolation,EaseIn,EaseOut,FixedInterpolation,InverseInterpolation,JoinedInterpolation,LinearInterpolation,ScaledInterpolation
public interface Interpolation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Interpolation> static final DataType<Interpolation> static final com.mojang.serialization.Codec<Interpolation> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Interpolation> static final com.mojang.serialization.Codec<Interpolation> -
Method Summary
Modifier and TypeMethodDescriptiondoubleinterpolate(double t) default doubleinterpolate(double t, double a, double b) default net.minecraft.world.phys.Vec3interpolate(double t, net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) default floatinterpolate(float t) default floatinterpolate(float t, float a, float b) default Vec3finterpolate(float t, Vec3f a, Vec3f b) default doubleinterpolateClamped(double t) default floatinterpolateClamped(float t) default doubleinterpolateMirrored(double x) default Interpolationinverse()default booleanisLinear()default Interpolationjoin(Interpolation other) type()
-
Field Details
-
UNIT_CODEC
-
DIRECT_CODEC
-
CODEC
-
STREAM_CODEC
static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Interpolation> STREAM_CODEC -
DATA_TYPE
-
-
Method Details
-
type
InterpolationType<?> type() -
interpolate
double interpolate(double t) -
interpolate
default float interpolate(float t) -
interpolateClamped
default double interpolateClamped(double t) -
interpolateClamped
default float interpolateClamped(float t) -
interpolate
default double interpolate(double t, double a, double b) -
interpolate
default float interpolate(float t, float a, float b) -
interpolate
default net.minecraft.world.phys.Vec3 interpolate(double t, net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) -
interpolate
-
interpolateMirrored
default double interpolateMirrored(double x) -
inverse
-
isLinear
default boolean isLinear() -
join
-