public class Naturalizer extends java.lang.Object implements LayerFunction
Constructor and Description |
---|
Naturalizer(EditSession editSession)
Make a new naturalizer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position,
int depth)
Apply the function to the given position.
|
int |
getAffected()
Get the number of affected objects.
|
boolean |
isGround(BlockVector3 position)
Returns whether the given block should be "passed through" when
conducting the ground search.
|
public Naturalizer(EditSession editSession)
editSession
- an edit sessionpublic int getAffected()
public boolean isGround(BlockVector3 position)
LayerFunction
isGround
in interface LayerFunction
position
- return whether the given block is the groundpublic boolean apply(BlockVector3 position, int depth) throws WorldEditException
LayerFunction
The depth would be the number of blocks from the surface if
a LayerVisitor
was used.
apply
in interface LayerFunction
position
- the positiondepth
- the depth as a number starting from 0WorldEditException
- thrown on an error