public class CombinedRegionFunction extends java.lang.Object implements RegionFunction
Constructor and Description |
---|
CombinedRegionFunction()
Create a combined region function.
|
CombinedRegionFunction(java.util.Collection<RegionFunction> functions)
Create a combined region function.
|
CombinedRegionFunction(RegionFunction... function)
Create a combined region function.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection<RegionFunction> functions)
Add the given functions to the list of functions to call.
|
void |
add(RegionFunction... function)
Add the given functions to the list of functions to call.
|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
public CombinedRegionFunction()
public CombinedRegionFunction(java.util.Collection<RegionFunction> functions)
functions
- a list of functions to matchpublic CombinedRegionFunction(RegionFunction... function)
function
- an array of functions to matchpublic void add(java.util.Collection<RegionFunction> functions)
functions
- a list of functionspublic void add(RegionFunction... function)
function
- an array of functionspublic boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error