public class DownwardVisitor extends RecursiveVisitor
This is used by //fill
.
warnedDeprecatedClasses
Constructor and Description |
---|
DownwardVisitor(Mask mask,
RegionFunction function,
int baseY)
Create a new visitor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isVisitable(BlockVector3 from,
BlockVector3 to)
Return whether the given 'to' block should be visited, starting from the
'from' block.
|
addAxes, addDiagonal, cancel, getAffected, getDirections, getStatusMessages, resume, visit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatusMessages
public DownwardVisitor(Mask mask, RegionFunction function, int baseY)
mask
- the maskfunction
- the functionbaseY
- the base Yprotected boolean isVisitable(BlockVector3 from, BlockVector3 to)
BreadthFirstSearch
isVisitable
in class RecursiveVisitor
from
- the origin blockto
- the block under question