public class RecursiveVisitor extends BreadthFirstSearch
BreadthFirstSearch
that uses a mask to
determine where a block should be visited.warnedDeprecatedClasses
Constructor and Description |
---|
RecursiveVisitor(Mask mask,
RegionFunction function)
Create a new recursive 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 RecursiveVisitor(Mask mask, RegionFunction function)
mask
- the maskfunction
- the functionprotected boolean isVisitable(BlockVector3 from, BlockVector3 to)
BreadthFirstSearch
isVisitable
in class BreadthFirstSearch
from
- the origin blockto
- the block under question