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
ConstructorsConstructorDescriptionCreate 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 TypeMethodDescriptionvoidadd(RegionFunction... function) Add the given functions to the list of functions to call.voidadd(Collection<RegionFunction> functions) Add the given functions to the list of functions to call.booleanapply(BlockVector3 position) Apply the function to the given position.static CombinedRegionFunctioncombine(RegionFunction function, RegionFunction add) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finish, finishChunk, fork, joinMethods 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:RegionFunctionApply the function to the given position.- Specified by:
applyin interfaceRegionFunction- Parameters:
position- the position- Returns:
- true if something was changed
- Throws:
WorldEditException- thrown on an error
-