Enum Class EntityDataTypes1_8
java.lang.Object
java.lang.Enum<EntityDataTypes1_8>
com.viaversion.viaversion.api.minecraft.entitydata.types.EntityDataTypes1_8
- All Implemented Interfaces:
EntityDataType
,Serializable
,Comparable<EntityDataTypes1_8>
,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
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityDataTypes1_8
byId
(int id) type()
Get the write/read typeint
typeId()
Get type id from the specific EntityDataTypestatic EntityDataTypes1_8
Returns the enum constant of this class with the specified name.static EntityDataTypes1_8[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTE
-
SHORT
-
INT
-
FLOAT
-
STRING
-
ITEM
-
BLOCK_POSITION
-
ROTATIONS
-
-
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:EntityDataType
Get type id from the specific EntityDataType- Specified by:
typeId
in interfaceEntityDataType
- Returns:
- Type id as an integer
-
type
Description copied from interface:EntityDataType
Get the write/read type- Specified by:
type
in interfaceEntityDataType
- Returns:
- Type instance
-