public class ExtentEntityCopy extends java.lang.Object implements EntityFunction
Extent
.Constructor and Description |
---|
ExtentEntityCopy(Vector3 from,
Extent destination,
Vector3 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(Vector3 from, Extent destination, Vector3 to, Transform transform)
from
- the from positiondestination
- the destination Extent
to
- 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
EntityFunction
apply
in interface EntityFunction
entity
- the entityWorldEditException
- thrown on an error