Class MaskIntersection2D

java.lang.Object
com.sk89q.worldedit.function.mask.MaskIntersection2D
All Implemented Interfaces:
Mask2D
Direct Known Subclasses:
MaskUnion2D

public class MaskIntersection2D extends Object implements Mask2D
Tests true if all contained masks test true.
  • Field Details

  • Constructor Details

    • MaskIntersection2D

      public MaskIntersection2D(Collection<Mask2D> masks)
      Create a new intersection.
      Parameters:
      masks - a list of masks
    • MaskIntersection2D

      public MaskIntersection2D(Mask2D... mask)
      Create a new intersection.
      Parameters:
      mask - a list of masks
  • Method Details

    • add

      public void add(Collection<Mask2D> masks)
      Add some masks to the list.
      Parameters:
      masks - the masks
    • add

      public void add(Mask2D... mask)
      Add some masks to the list.
      Parameters:
      mask - the masks
    • getMasks

      public Collection<Mask2D> getMasks()
      Get the masks that are tested with.
      Returns:
      the masks
    • test

      public boolean test(BlockVector2 vector)
      Description copied from interface: Mask2D
      Returns true if the criteria is met.
      Specified by:
      test in interface Mask2D
      Parameters:
      vector - the vector to test
      Returns:
      true if the criteria is met
    • copy2D

      public Mask2D copy2D()
      Specified by:
      copy2D in interface Mask2D