Enum Class EaseIn

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

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

    • SINE

      public static final EaseIn SINE
    • QUAD

      public static final EaseIn QUAD
    • CUBIC

      public static final EaseIn CUBIC
    • QUART

      public static final EaseIn QUART
    • QUINT

      public static final EaseIn QUINT
    • EXPO

      public static final EaseIn EXPO
    • CIRC

      public static final EaseIn CIRC
    • BACK

      public static final EaseIn BACK
    • ELASTIC

      public static final EaseIn ELASTIC
    • BOUNCE

      public static final EaseIn BOUNCE
  • Field Details

    • VALUES

      public static final EaseIn[] VALUES
    • CODEC

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

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

      public final String name
    • function

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

      public final InterpolationType<EaseIn> type
  • Method Details

    • values

      public static EaseIn[] 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 EaseIn 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<EaseIn>
    • inverse

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

      public Interpolation composite(Interpolation other)
      Specified by:
      composite in interface Interpolation