Interface Interpolation
- All Superinterfaces:
CustomRegistryOwnTypeProvider<io.netty.buffer.ByteBuf, Interpolation>, CustomRegistryValue<io.netty.buffer.ByteBuf, Interpolation>, RefOptimizer<Interpolation>, WithKey
- All Known Implementing Classes:
BezierInterpolation, CompositeInterpolation, EaseIn, EaseOut, FixedInterpolation, FlipXInterpolation, FlipYInterpolation, InverseInterpolation, JoinedInterpolation, LinearInterpolation, ScaledInterpolation
-
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 WithKey
COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic 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()default net.minecraft.util.EasingTypeMethods 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>
-
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() -
toEasingType
default net.minecraft.util.EasingType toEasingType()
-