Interface Interpolation

All Known Implementing Classes:
BezierInterpolation, EaseIn, EaseOut, FixedInterpolation, FlipXInterpolation, FlipYInterpolation, InverseInterpolation, JoinedInterpolation, LinearInterpolation, ScaledInterpolation

public interface Interpolation
  • Field Details

    • UNIT_CODEC

      static final com.mojang.serialization.Codec<Interpolation> UNIT_CODEC
    • DIRECT_CODEC

      static final com.mojang.serialization.Codec<Interpolation> DIRECT_CODEC
    • CODEC

      static final com.mojang.serialization.Codec<Interpolation> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Interpolation> STREAM_CODEC
    • DATA_TYPE

      static final DataType<Interpolation> DATA_TYPE
  • Method Details

    • 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

      default Vec3f interpolate(float t, Vec3f a, Vec3f b)
    • interpolateMirrored

      default double interpolateMirrored(double x, Interpolation end)
    • interpolateMirrored

      default double interpolateMirrored(double x)
    • inverse

      default Interpolation inverse()
    • flipX

      default Interpolation flipX()
    • flipY

      default Interpolation flipY()
    • isLinear

      default boolean isLinear()
    • join

      default Interpolation join(Interpolation other)