public interface Entity extends Faceted, Locatable
Extent
and thus would have position and similar details.
This object cannot be directly cloned because it represents a particular
instance of an entity, but a BaseEntity
can be created from
this entity by calling getState()
.
Modifier and Type | Method and Description |
---|---|
BaseEntity |
getState()
Get a copy of the entity's state.
|
boolean |
remove()
Remove this entity from it container.
|
getBlockLocation, getExtent, getLocation, setLocation, setPosition, trySetPosition
@Nullable BaseEntity getState()
In some cases, this method may return null
if a snapshot
of the entity can't be created. It may not be possible, for example,
to get a snapshot of a player.
boolean remove()