Package dev.latvian.mods.klib.easing
Enum Class Easing
- All Implemented Interfaces:
EasingFunction,Serializable,Comparable<Easing>,Constable,net.minecraft.util.StringRepresentable
public enum Easing
extends Enum<Easing>
implements EasingFunction, net.minecraft.util.StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntFunction<Easing[]> static final com.mojang.serialization.Codec<Easing> final EasingFunctionfinal Stringstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Easing> static final Easing[]Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface dev.latvian.mods.klib.easing.EasingFunction
ease, easeClamped, easeClamped, lerp, lerp, lerp, lerp
-
Enum Constant Details
-
LINEAR
-
SINE_IN
-
SINE_OUT
-
SINE_IN_OUT
-
QUAD_IN
-
QUAD_OUT
-
QUAD_IN_OUT
-
CUBIC_IN
-
CUBIC_OUT
-
CUBIC_IN_OUT
-
QUART_IN
-
QUART_OUT
-
QUART_IN_OUT
-
QUINT_IN
-
QUINT_OUT
-
QUINT_IN_OUT
-
EXPO_IN
-
EXPO_OUT
-
EXPO_IN_OUT
-
CIRC_IN
-
CIRC_OUT
-
CIRC_IN_OUT
-
BACK_IN
-
BACK_OUT
-
BACK_IN_OUT
-
ELASTIC_IN
-
ELASTIC_OUT
-
ELASTIC_IN_OUT
-
BOUNCE_OUT
-
BOUNCE_IN
-
BOUNCE_IN_OUT
-
SMOOTHSTEP
-
ISMOOTHSTEP
-
SMOOTHERSTEP
-
MIN
-
MAX
-
MIDDLE
-
HALF
-
DOUBLE
-
-
Field Details
-
VALUES
-
ARRAY_FACTORY
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,Easing> STREAM_CODEC -
DATA_TYPE
-
name
-
function
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
ease
public double ease(double x) - Specified by:
easein interfaceEasingFunction
-
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-
toString
-