Package com.sk89q.worldedit.entity
Interface Entity
- All Known Subinterfaces:
Player
- All Known Implementing Classes:
AbstractPlayerActor,AsyncPlayer,BlockArrayClipboard.ClipboardEntity,HistoryExtent.TrackedEntity,IChunkExtent.IChunkEntity,LocationMaskedPlayerWrapper,PlayerProxy,SilentPlayerWrapper
A reference to an instance of an entity that exists in an
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().
-
Method Summary
Modifier and TypeMethodDescriptiongetState()Get a copy of the entity's state.default EntityTypegetType()booleanremove()Remove this entity from it container.Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, getExtent, getLocation, setLocation, setPosition, trySetPosition
-
Method Details
-
getState
Get a copy of the entity's state.In some cases, this method may return
nullif a snapshot of the entity can't be created. It may not be possible, for example, to get a snapshot of a player.- Returns:
- the entity's state or null if one cannot be created
-
getType
-
remove
boolean remove()Remove this entity from it container.- Returns:
- true if removal was successful
-