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>
  • Field Details

  • Method Details

    • linear

      static Ref<Interpolation> linear()
    • builtInTypes

      static void builtInTypes(CustomRegistryTypeCollector<io.netty.buffer.ByteBuf, Interpolation> registry)
    • getRegistry

      default CustomRegistry<io.netty.buffer.ByteBuf, Interpolation> getRegistry()
      Specified by:
      getRegistry in interface CustomRegistryValue<io.netty.buffer.ByteBuf, Interpolation>
    • apply

      default float apply(float x)
      Specified by:
      apply in interface net.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

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

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

      default double interpolateMirrored(double x)
    • isLinear

      default boolean isLinear()