Package com.sk89q.worldedit.function
Class CombinedRegionFunction
java.lang.Object
com.sk89q.worldedit.function.CombinedRegionFunction
- All Implemented Interfaces:
RegionFunction
Executes several region functions in order.
-
Constructor Summary
ConstructorDescriptionCreate a combined region function.CombinedRegionFunction
(RegionFunction... function) Create a combined region function.CombinedRegionFunction
(Collection<RegionFunction> functions) Create a combined region function. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(RegionFunction... function) Add the given functions to the list of functions to call.void
add
(Collection<RegionFunction> functions) Add the given functions to the list of functions to call.boolean
apply
(BlockVector3 position) Apply the function to the given position.
-
Constructor Details
-
CombinedRegionFunction
public CombinedRegionFunction()Create a combined region function. -
CombinedRegionFunction
Create a combined region function.- Parameters:
functions
- a list of functions to match
-
CombinedRegionFunction
Create a combined region function.- Parameters:
function
- an array of functions to match
-
-
Method Details
-
add
Add the given functions to the list of functions to call.- Parameters:
functions
- a list of functions
-
add
Add the given functions to the list of functions to call.- Parameters:
function
- an array of functions
-
apply
Description copied from interface:RegionFunction
Apply the function to the given position.- Specified by:
apply
in interfaceRegionFunction
- Parameters:
position
- the position- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-