public interface LayerFunction
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position,
int depth)
Apply the function to the given position.
|
boolean |
isGround(BlockVector3 position)
Returns whether the given block should be "passed through" when
conducting the ground search.
|
boolean isGround(BlockVector3 position)
position
- return whether the given block is the groundboolean apply(BlockVector3 position, int depth) throws WorldEditException
The depth would be the number of blocks from the surface if
a LayerVisitor
was used.
position
- the positiondepth
- the depth as a number starting from 0WorldEditException
- thrown on an error