Class BlockArrayClipboard.ClipboardEntity
java.lang.Object
com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard.ClipboardEntity
- Enclosing class:
BlockArrayClipboard
Stores entity data.
-
Constructor Summary
ConstructorsConstructorDescriptionClipboardEntity(Clipboard clipboard, double x, double y, double z, float yaw, float pitch, BaseEntity entity) ClipboardEntity(Location loc, BaseEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionGet the extent that this actor is in.<T> TGet the facet corresponding to the given class or interface.Get the location of this actor.getState()Get a copy of the entity's state.booleanremove()Remove this entity from it container.booleansetLocation(Location loc) Sets the location of this actor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, setPosition, trySetPosition
-
Constructor Details
-
ClipboardEntity
-
ClipboardEntity
public ClipboardEntity(Clipboard clipboard, double x, double y, double z, float yaw, float pitch, BaseEntity entity)
-
-
Method Details
-
remove
public boolean remove()Description copied from interface:EntityRemove this entity from it container. -
getFacet
Description copied from interface:FacetedGet the facet corresponding to the given class or interface. -
getState
Description copied from interface:EntityGet 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. -
getLocation
Description copied from interface:LocatableGet the location of this actor.- Specified by:
getLocationin interfaceLocatable- Returns:
- the location of the actor
-
getExtent
Description copied from interface:LocatableGet the extent that this actor is in. -
setLocation
Description copied from interface:LocatableSets the location of this actor.- Specified by:
setLocationin interfaceLocatable- Parameters:
loc- the new location of the actor- Returns:
- if the teleport succeeded
-