Class ExtentEntityCopy
java.lang.Object
com.sk89q.worldedit.function.entity.ExtentEntityCopy
- All Implemented Interfaces:
EntityFunction
Copies entities provided to the function to the provided destination
Extent
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Apply the function to the entity.boolean
Return whether entities that are copied should be removed.void
setRemoving
(boolean removing) Set whether entities that are copied should be removed.
-
Constructor Details
-
ExtentEntityCopy
@Deprecated public ExtentEntityCopy(Vector3 from, Extent destination, Vector3 to, Transform transform) Deprecated.FAWE Deprecation - Use method with ExtentCreate a new instance.- Parameters:
from
- the from positiondestination
- the destinationExtent
to
- the destination positiontransform
- the transformation to apply to both position and orientation
-
ExtentEntityCopy
public ExtentEntityCopy(Extent source, Vector3 from, Extent destination, Vector3 to, Transform transform) Create a new instance.- Parameters:
source
- the sourceExtent
from
- the from positiondestination
- the destinationExtent
to
- the destination positiontransform
- the transformation to apply to both position and orientation
-
-
Method Details
-
isRemoving
public boolean isRemoving()Return whether entities that are copied should be removed.- Returns:
- true if removing
-
setRemoving
public void setRemoving(boolean removing) Set whether entities that are copied should be removed.- Parameters:
removing
- true if removing
-
apply
Description copied from interface:EntityFunction
Apply the function to the entity.- Specified by:
apply
in interfaceEntityFunction
- Parameters:
entity
- the entity- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-