Class ExistingBlockMask

All Implemented Interfaces:
Mask

public class ExistingBlockMask extends AbstractExtentMask
A mask that returns true whenever the block at the location is not an air block (it contains some other block).
  • Constructor Details

    • ExistingBlockMask

      public ExistingBlockMask(Extent extent)
      Create a new existing block map.
      Parameters:
      extent - the extent to check
  • Method Details

    • test

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