Class AboveVisitor

All Implemented Interfaces:
Operation

public class AboveVisitor extends RecursiveVisitor
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.

  • Constructor Details

    • AboveVisitor

      public AboveVisitor(Mask mask, RegionFunction function, int baseY, int depth, int minY, int maxY)
      Create a new visitor.
      Parameters:
      mask - the mask
      function - the function
      baseY - the base Y
      depth - maximum number of iterations
      minY - min visitable y value. Inclusive.
      maxY - max visitable y value. Inclusive.
  • Method Details

    • isVisitable

      public boolean isVisitable(BlockVector3 from, BlockVector3 to)
      Description copied from class: BreadthFirstSearch
      Return whether the given 'to' block should be visited, starting from the 'from' block.
      Overrides:
      isVisitable in class RecursiveVisitor
      Parameters:
      from - the origin block
      to - the block under question
      Returns:
      true if the 'to' block should be visited