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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply the function to the entity.booleanReturn whether entities that are copied should be removed.voidsetRemoving(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 destinationExtentto- 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 sourceExtentfrom- the from positiondestination- the destinationExtentto- 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:EntityFunctionApply the function to the entity.- Specified by:
applyin interfaceEntityFunction- Parameters:
entity- the entity- Returns:
- true if something was changed
- Throws:
WorldEditException- thrown on an error
-