-
Method Summary
void
Handles and transforms entity data of an entity.
int
Returns the mapped entity (or the same if it has not changed).
Returns the entity type from the given id.
Returns the entity tracker for the current protocol.
Returns the entity type from the given (mapped) type id.
-
Method Details
-
typeFromId
Returns the entity type from the given (mapped) type id.
- Parameters:
type
- mapped type id
- Returns:
- entity type
-
objectTypeFromId
Returns the entity type from the given id.
From 1.14 and onwards, this is the same exact value as
typeFromId(int)
.
- Parameters:
type
- entity type id
- Returns:
- EntityType from id
-
newEntityId
int newEntityId(int id)
Returns the mapped entity (or the same if it has not changed).
- Parameters:
id
- unmapped entity id
- Returns:
- mapped entity id
-
handleEntityData
Handles and transforms entity data of an entity.
- Parameters:
entityId
- entity id
dataList
- full, mutable list of entity data
connection
- user connection
-
tracker
Returns the entity tracker for the current protocol.
- Type Parameters:
E
- entity tracker type
- Parameters:
connection
- user connection
- Returns:
- entity tracker