Class DownwardVisitor
java.lang.Object
com.sk89q.worldedit.function.visitor.BreadthFirstSearch
com.sk89q.worldedit.function.visitor.RecursiveVisitor
com.sk89q.worldedit.function.visitor.DownwardVisitor
- All Implemented Interfaces:
Operation
Visits adjacent points on the same X-Z plane as long as the points
pass the given mask, and then executes the provided region
function on the entire column.
This is used by //fill
.
-
Field Summary
Fields inherited from interface com.sk89q.worldedit.function.operation.Operation
warnedDeprecatedClasses
-
Constructor Summary
ConstructorDescriptionDownwardVisitor
(Mask mask, RegionFunction function, int baseY) Create a new visitor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isVisitable
(BlockVector3 from, BlockVector3 to) Return whether the given 'to' block should be visited, starting from the 'from' block.Methods inherited from class com.sk89q.worldedit.function.visitor.BreadthFirstSearch
addAxes, addDiagonal, cancel, getAffected, getDirections, getStatusMessages, resume, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.function.operation.Operation
addStatusMessages
-
Constructor Details
-
DownwardVisitor
Create a new visitor.- Parameters:
mask
- the maskfunction
- the functionbaseY
- the base Y
-
-
Method Details
-
isVisitable
Description copied from class:BreadthFirstSearch
Return whether the given 'to' block should be visited, starting from the 'from' block.- Overrides:
isVisitable
in classRecursiveVisitor
- Parameters:
from
- the origin blockto
- the block under question- Returns:
- true if the 'to' block should be visited
-