public interface Entity extends Faceted
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 |
|---|---|
Extent |
getExtent()
Get the extent that this entity is on.
|
Location |
getLocation()
Get the location of this entity.
|
BaseEntity |
getState()
Get a copy of the entity's state.
|
boolean |
remove()
Remove this entity from it container.
|
@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.
Location getLocation()
Extent getExtent()
boolean remove()
Copyright © 2010-2014. All Rights Reserved.