Enum Class EaseOut

java.lang.Object
java.lang.Enum<EaseOut>
dev.latvian.mods.klib.interpolation.EaseOut
All Implemented Interfaces:
Interpolation, Serializable, Comparable<EaseOut>, Constable, net.minecraft.util.StringRepresentable

public enum EaseOut extends Enum<EaseOut> implements Interpolation, net.minecraft.util.StringRepresentable
  • Enum Constant Details

    • SINE

      public static final EaseOut SINE
    • QUAD

      public static final EaseOut QUAD
    • CUBIC

      public static final EaseOut CUBIC
    • QUART

      public static final EaseOut QUART
    • QUINT

      public static final EaseOut QUINT
    • EXPO

      public static final EaseOut EXPO
    • CIRC

      public static final EaseOut CIRC
    • BACK

      public static final EaseOut BACK
    • ELASTIC

      public static final EaseOut ELASTIC
    • BOUNCE

      public static final EaseOut BOUNCE
  • Field Details

    • VALUES

      public static final EaseOut[] VALUES
    • CODEC

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

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, EaseOut> STREAM_CODEC
    • name

      public final String name
    • function

      public final it.unimi.dsi.fastutil.doubles.Double2DoubleFunction function
    • type

      public final InterpolationType<EaseOut> type
  • Method Details

    • values

      public static EaseOut[] 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 EaseOut 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
    • type

      public InterpolationType<?> type()
      Specified by:
      type in interface Interpolation
    • interpolate

      public double interpolate(double x)
      Specified by:
      interpolate in interface Interpolation
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • toString

      public String toString()
      Overrides:
      toString in class Enum<EaseOut>
    • inverse

      public Interpolation inverse()
      Specified by:
      inverse in interface Interpolation