Interface Interpolation
- All Known Implementing Classes:
BezierInterpolation, CompositeInterpolation, EaseIn, EaseOut, FixedInterpolation, FlipXInterpolation, FlipYInterpolation, InverseInterpolation, JoinedInterpolation, LinearInterpolation, ScaledInterpolation
public interface Interpolation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Interpolation> static final DataType<Interpolation> static final CustomRegistry<io.netty.buffer.ByteBuf, Interpolation> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Interpolation> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuiltInTypes(CustomRegistryTypeCollector<io.netty.buffer.ByteBuf, Interpolation> registry) default Interpolationcomposite(Interpolation other) default InterpolationflipX()default InterpolationflipY()doubleinterpolate(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 doubleinterpolateMirrored(double x, Interpolation end) default Interpolationinverse()default booleanisLinear()default Interpolationjoin(Interpolation other) default @Nullable CustomRegistryType<io.netty.buffer.ByteBuf, Interpolation> type()
-
Field Details
-
REGISTRY
-
CODEC
-
STREAM_CODEC
static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Interpolation> STREAM_CODEC -
DATA_TYPE
-
-
Method Details
-
builtInTypes
static void builtInTypes(CustomRegistryTypeCollector<io.netty.buffer.ByteBuf, Interpolation> registry) -
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
-
interpolateMirrored
default double interpolateMirrored(double x) -
inverse
-
flipX
-
flipY
-
isLinear
default boolean isLinear() -
composite
-
join
-