Enum AnimationStateMachine.TransitionsAdapterFactory
- java.lang.Object
-
- java.lang.Enum<AnimationStateMachine.TransitionsAdapterFactory>
-
- net.minecraftforge.common.model.animation.AnimationStateMachine.TransitionsAdapterFactory
-
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
,java.io.Serializable
,java.lang.Comparable<AnimationStateMachine.TransitionsAdapterFactory>
- Enclosing class:
- AnimationStateMachine
private static enum AnimationStateMachine.TransitionsAdapterFactory extends java.lang.Enum<AnimationStateMachine.TransitionsAdapterFactory> implements com.google.gson.TypeAdapterFactory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
TransitionsAdapterFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.google.gson.TypeAdapter<T>
create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
static AnimationStateMachine.TransitionsAdapterFactory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AnimationStateMachine.TransitionsAdapterFactory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AnimationStateMachine.TransitionsAdapterFactory INSTANCE
-
-
Method Detail
-
values
public static AnimationStateMachine.TransitionsAdapterFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnimationStateMachine.TransitionsAdapterFactory c : AnimationStateMachine.TransitionsAdapterFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnimationStateMachine.TransitionsAdapterFactory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
create
@Nullable public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
- Specified by:
create
in interfacecom.google.gson.TypeAdapterFactory
-
-