public class ExtentEntityCopy extends Object implements EntityFunction
Extent.| Constructor and Description |
|---|
ExtentEntityCopy(Vector from,
Extent destination,
Vector to,
Transform transform)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Entity entity)
Apply the function to the entity.
|
boolean |
isRemoving()
Return whether entities that are copied should be removed.
|
void |
setRemoving(boolean removing)
Set whether entities that are copied should be removed.
|
public ExtentEntityCopy(Vector from, Extent destination, Vector to, Transform transform)
from - the from positiondestination - the destination Extentto - the destination positiontransform - the transformation to apply to both position and orientationpublic boolean isRemoving()
public void setRemoving(boolean removing)
removing - true if removingpublic boolean apply(Entity entity) throws WorldEditException
EntityFunctionapply in interface EntityFunctionentity - the entityWorldEditException - thrown on an errorCopyright © 2010-2014. All Rights Reserved.