Interface Interpolation
- All Superinterfaces:
CustomRegistryOwnTypeProvider<io.netty.buffer.ByteBuf, Interpolation>, CustomRegistryValue<io.netty.buffer.ByteBuf, Interpolation>, net.minecraft.util.EasingType, RefOptimizer<Interpolation>, WithKey
- All Known Implementing Classes:
BezierInterpolation, CompositeInterpolation, EaseIn, EaseOut, FixedInterpolation, FlipXInterpolation, FlipYInterpolation, InverseInterpolation, JoinedInterpolation, LinearInterpolation, ScaledInterpolation
public interface Interpolation
extends net.minecraft.util.EasingType, CustomRegistryValue<io.netty.buffer.ByteBuf, Interpolation>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.EasingType
net.minecraft.util.EasingType.CubicBezier, net.minecraft.util.EasingType.CubicBezierControls -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Ref<Interpolation>> static final DataType<Ref<Interpolation>> static final CustomRegistry<io.netty.buffer.ByteBuf, Interpolation> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Ref<Interpolation>> Fields inherited from interface net.minecraft.util.EasingType
CONSTANT, IN_BACK, IN_BOUNCE, IN_CIRC, IN_CUBIC, IN_ELASTIC, IN_EXPO, IN_OUT_BACK, IN_OUT_BOUNCE, IN_OUT_CIRC, IN_OUT_CUBIC, IN_OUT_ELASTIC, IN_OUT_EXPO, IN_OUT_QUAD, IN_OUT_QUART, IN_OUT_QUINT, IN_OUT_SINE, IN_QUAD, IN_QUART, IN_QUINT, IN_SINE, LINEAR, OUT_BACK, OUT_BOUNCE, OUT_CIRC, OUT_CUBIC, OUT_ELASTIC, OUT_EXPO, OUT_QUAD, OUT_QUART, OUT_QUINT, OUT_SINE, SIMPLE_REGISTRYFields inherited from interface WithKey
COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptiondefault floatapply(float x) static voidbuiltInTypes(CustomRegistryTypeCollector<io.netty.buffer.ByteBuf, Interpolation> registry) default CustomRegistry<io.netty.buffer.ByteBuf, Interpolation> 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 booleanisLinear()static Ref<Interpolation> linear()Methods inherited from interface CustomRegistryOwnTypeProvider
typeMethods inherited from interface CustomRegistryValue
optionalKey, refMethods inherited from interface RefOptimizer
optimize
-
Field Details
-
REGISTRY
-
CODEC
-
STREAM_CODEC
static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Ref<Interpolation>> STREAM_CODEC -
DATA_TYPE
-
-
Method Details
-
linear
-
builtInTypes
static void builtInTypes(CustomRegistryTypeCollector<io.netty.buffer.ByteBuf, Interpolation> registry) -
getRegistry
- Specified by:
getRegistryin interfaceCustomRegistryValue<io.netty.buffer.ByteBuf, Interpolation>
-
apply
default float apply(float x) - Specified by:
applyin interfacenet.minecraft.util.EasingType
-
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) -
isLinear
default boolean isLinear()
-