Class AdjacentAnyMask

java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask
com.fastasyncworldedit.core.function.mask.AdjacentAnyMask
All Implemented Interfaces:
ResettableMask, Resettable, Mask
Direct Known Subclasses:
SurfaceMask

public class AdjacentAnyMask extends AbstractMask implements ResettableMask
Just an optimized version of the Adjacent Mask for single adjacency.
  • Constructor Details

    • AdjacentAnyMask

      public AdjacentAnyMask(Mask mask, int minY, int maxY)
  • Method Details

    • reset

      public void reset()
      Specified by:
      reset in interface Resettable
      Specified by:
      reset in interface ResettableMask
    • getParentMask

      public CachedMask getParentMask()
    • test

      public boolean test(BlockVector3 v)
      Description copied from interface: Mask
      Returns true if the criteria is met.
      Specified by:
      test in interface Mask
      Parameters:
      v - the vector to test
      Returns:
      true if the criteria is met
    • direction

      public BlockVector3 direction(BlockVector3 v)
    • copy

      public Mask copy()
      Description copied from interface: Mask
      Returns a copy of the mask. Usually for multi-threaded operation
      Specified by:
      copy in interface Mask
      Returns:
      a clone of the mask