Enum Class EntityDataTypes1_12
java.lang.Object
java.lang.Enum<EntityDataTypes1_12>
com.viaversion.viaversion.api.minecraft.entitydata.types.EntityDataTypes1_12
- All Implemented Interfaces:
EntityDataType,Serializable,Comparable<EntityDataTypes1_12>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface com.viaversion.viaversion.api.minecraft.entitydata.EntityDataType
EntityDataType.EntityDataTypeImpl -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityDataTypes1_12byId(int id) type()Get the write/read typeinttypeId()Get type id from the specific EntityDataTypestatic EntityDataTypes1_12Returns the enum constant of this class with the specified name.static EntityDataTypes1_12[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTE
-
VAR_INT
-
FLOAT
-
STRING
-
COMPONENT
-
ITEM
-
BOOLEAN
-
ROTATIONS
-
BLOCK_POSITION
-
OPTIONAL_BLOCK_POSITION
-
DIRECTION
-
OPTIONAL_UUID
-
OPTIONAL_BLOCK_STATE
-
COMPOUND_TAG
-
-
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
-
byId
-
typeId
public int typeId()Description copied from interface:EntityDataTypeGet type id from the specific EntityDataType- Specified by:
typeIdin interfaceEntityDataType- Returns:
- Type id as an integer
-
type
Description copied from interface:EntityDataTypeGet the write/read type- Specified by:
typein interfaceEntityDataType- Returns:
- Type instance
-