Class BlockArrayClipboard.ClipboardEntity
java.lang.Object
com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard.ClipboardEntity
- Enclosing class:
BlockArrayClipboard
Stores entity data.
-
Constructor Summary
ConstructorDescriptionClipboardEntity
(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> 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 loc) 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
-
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:Entity
Remove this entity from it container. -
getFacet
Description copied from interface:Faceted
Get the facet corresponding to the given class or interface. -
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. -
setLocation
Description copied from interface:Locatable
Sets the location of this actor.- Specified by:
setLocation
in interfaceLocatable
- Parameters:
loc
- the new location of the actor- Returns:
- if the teleport succeeded
-