Class AbstractEntityDataTypes
java.lang.Object
com.viaversion.viaversion.api.minecraft.entitydata.types.AbstractEntityDataTypes
- All Implemented Interfaces:
EntityDataTypes
- Direct Known Subclasses:
EntityDataTypes1_13,EntityDataTypes1_13_2,EntityDataTypes1_14,EntityDataTypes1_19,EntityDataTypes1_19_3,EntityDataTypes1_19_4,EntityDataTypes1_20_2,EntityDataTypes1_20_3,EntityDataTypes1_20_5,EntityDataTypes1_21,EntityDataTypes1_21_11,EntityDataTypes1_21_2,EntityDataTypes1_21_5,EntityDataTypes1_21_9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityDataTypebyId(int id) Returns the data type by the given id.values()Returns an array of data types.
-
Constructor Details
-
AbstractEntityDataTypes
protected AbstractEntityDataTypes(int values)
-
-
Method Details
-
byId
Description copied from interface:EntityDataTypesReturns the data type by the given id.- Specified by:
byIdin interfaceEntityDataTypes- Parameters:
id- type id- Returns:
- data type by id
-
values
Description copied from interface:EntityDataTypesReturns an array of data types.- Specified by:
valuesin interfaceEntityDataTypes- Returns:
- array of data types
-
add
-