Modifier and Type | Method and Description |
---|---|
void |
handleMetadata(int entityId,
java.util.List<Metadata> metadataList,
UserConnection connection)
Handles and transforms metadata of an entity.
|
int |
newEntityId(int id)
Returns the mapped entitiy (or the same if it has not changed).
|
default EntityType |
objectTypeFromId(int type)
Returns the entity type from the given id.
|
default <E extends EntityTracker> |
tracker(UserConnection connection)
Returns the entity tracker for the current protocol.
|
EntityType |
typeFromId(int type)
Returns the entity type from the given (mapped) type id.
|
onMappingDataLoaded, protocol, register
EntityType typeFromId(int type)
type
- mapped type iddefault EntityType objectTypeFromId(int type)
typeFromId(int)
.type
- entity type idint newEntityId(int id)
id
- unmapped entity idvoid handleMetadata(int entityId, java.util.List<Metadata> metadataList, UserConnection connection)
entityId
- entity idmetadataList
- full, mutable list of metadataconnection
- user connectiondefault <E extends EntityTracker> E tracker(UserConnection connection)
E
- entity tracker typeconnection
- user connection