Enum Class LerpType

java.lang.Object
java.lang.Enum<LerpType>
de.luckymcdev.foundryengine.common.cutscene.util.LerpType
All Implemented Interfaces:
LerpOperation<Float>, Serializable, Comparable<LerpType>, Constable

public enum LerpType extends Enum<LerpType> implements LerpOperation<Float>
  • Enum Constant Details

    • LINEAR

      public static final LerpType LINEAR
    • SINE_IN

      public static final LerpType SINE_IN
    • SINE_OUT

      public static final LerpType SINE_OUT
    • SINE_IN_OUT

      public static final LerpType SINE_IN_OUT
    • CUBIC_IN

      public static final LerpType CUBIC_IN
    • CUBIC_OUT

      public static final LerpType CUBIC_OUT
    • CUBIC_IN_OUT

      public static final LerpType CUBIC_IN_OUT
    • QUINT_IN

      public static final LerpType QUINT_IN
    • QUINT_OUT

      public static final LerpType QUINT_OUT
    • QUINT_IN_OUT

      public static final LerpType QUINT_IN_OUT
    • BOUNCE_OUT

      public static final LerpType BOUNCE_OUT
    • BOUNCE_IN

      public static final LerpType BOUNCE_IN
    • BOUNCE_IN_OUT

      public static final LerpType BOUNCE_IN_OUT
  • Method Details

    • values

      public static LerpType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LerpType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static LerpType fromString(String name)
    • compute

      public Float compute(Float t)
      Specified by:
      compute in interface LerpOperation<Float>