Interface TrackedEntity
public interface TrackedEntity
-
Method Summary
Modifier and TypeMethodDescriptiondata()Object to hold arbitrary additional data.Returns the type of the stored entity.booleanhasData()Returns whether the stored entity currently has any additional data.booleanReturns whether entity data has already been sent at least once for this entity.voidsentEntityData(boolean sentEntityData)
-
Method Details
-
entityType
EntityType entityType()Returns the type of the stored entity.- Returns:
- type of the entity
-
data
StoredEntityData data()Object to hold arbitrary additional data.- Returns:
- entity data
-
hasData
boolean hasData()Returns whether the stored entity currently has any additional data.- Returns:
- whether the stored entity currently has additional data
-
hasSentEntityData
boolean hasSentEntityData()Returns whether entity data has already been sent at least once for this entity.- Returns:
- whether entity data has already been sent at least once for this entity
-
sentEntityData
void sentEntityData(boolean sentEntityData)
-