Class Interpolators

java.lang.Object
me.deecaad.core.transition.Interpolators

public final class Interpolators extends Object
Built-in Interpolator constants for the value types typically transitioned: scalars, Bukkit and JOML vectors, JOML quaternions (slerp), plus a stepped interpolator for discrete types like BlockData or ItemStack.
  • Field Details

    • DOUBLE

      @NotNull public static final @NotNull Interpolator<Double> DOUBLE
    • VECTOR

      @NotNull public static final @NotNull Interpolator<org.bukkit.util.Vector> VECTOR
    • VECTOR3F

      @NotNull public static final @NotNull Interpolator<org.joml.Vector3f> VECTOR3F
    • QUATERNIOND

      @NotNull public static final @NotNull Interpolator<org.joml.Quaterniond> QUATERNIOND
  • Method Details

    • stepped

      @NotNull public static <T> @NotNull Interpolator<T> stepped()
      A stepped interpolator for any type T. Returns a until a discrete switch is scheduled by the playback helper.