Class HistoryExtent.TrackedEntity
java.lang.Object
com.fastasyncworldedit.core.extent.HistoryExtent.TrackedEntity
- Enclosing class:
- HistoryExtent
-
Method Summary
Modifier and TypeMethodDescriptionGet the extent that this actor is in.<T> T
Get the facet corresponding to the given class or interface.Get the location of this actor.getState()
Get a copy of the entity's state.boolean
remove()
Remove this entity from it container.boolean
setLocation
(Location location) Sets the location of this actor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, setPosition, trySetPosition
-
Method Details
-
getState
Description copied from interface:Entity
Get a copy of the entity's state.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. -
getLocation
Description copied from interface:Locatable
Get the location of this actor.- Specified by:
getLocation
in interfaceLocatable
- Returns:
- the location of the actor
-
getExtent
Description copied from interface:Locatable
Get the extent that this actor is in. -
remove
public boolean remove()Description copied from interface:Entity
Remove this entity from it container. -
getFacet
Description copied from interface:Faceted
Get the facet corresponding to the given class or interface. -
setLocation
Description copied from interface:Locatable
Sets the location of this actor.- Specified by:
setLocation
in interfaceLocatable
- Parameters:
location
- the new location of the actor- Returns:
- if the teleport succeeded
-