Package com.sk89q.worldedit.function
Class CombinedRegionFunction
java.lang.Object
com.sk89q.worldedit.function.CombinedRegionFunction
- All Implemented Interfaces:
Filter
,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.static CombinedRegionFunction
combine
(RegionFunction function, RegionFunction add) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finishChunk, fork, join
Methods inherited from interface com.sk89q.worldedit.function.RegionFunction
applyBlock
-
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
-
combine
-
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
-