Interface GeyserEntityDataType<T>
- Type Parameters:
T- the value type associated with this entity data type
public interface GeyserEntityDataType<T>
Represents a type of entity data that can be sent for an entity.
Entity data types define the kind of value stored for a particular piece of metadata,
such as a Byte, Integer, Float; and the name associated with them.
Unlike custom items or blocks, it is possible to update entity metadata at runtime,
which can be done using GeyserEntity.update(GeyserEntityDataType, Object).
-
Method Summary
Modifier and TypeMethodDescriptionname()Gets the unique name of this data type.static <T> GeyserEntityDataType<T>For API usage only; use the types defined inGeyserEntityDataTypesGets the Java class representing the value type associated with this data type.
-
Method Details
-
typeClass
Gets the Java class representing the value type associated with this data type.- Returns:
- the class of the value used by this entity data type
-
name
String name()Gets the unique name of this data type.The name is used internally to identify and register the data type so it can be referenced when reading or writing entity metadata.
- Returns:
- the name of this entity data type
-
of
For API usage only; use the types defined inGeyserEntityDataTypes
-