Interface StoredEntity<T extends Entity>
- All Superinterfaces:
Nameable, PersistentDataHolder, PersistentDataViewHolder
Represents an entity stored in a block
- See Also:
-
Method Summary
Methods inherited from interface Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface PersistentDataHolder
getPersistentDataContainer
-
Method Details
-
hasBeenReleased
boolean hasBeenReleased()Checks if this entity has been released yet- Returns:
- if this entity has been released
-
release
-
getBlockStorage
Returns the block in which this entity is stored- Returns:
- the EntityBlockStorage in which this entity is stored, or null if it has been released
-
getType
Gets the entity type of this stored entity- Returns:
- the type of entity this stored entity represents
-
update
void update()Writes data to the block entity snapshot.BlockState.update()must be run in order to update the block in game.
-