Class SolidBlockMask

All Implemented Interfaces:
Mask

public class SolidBlockMask extends AbstractExtentMask
  • Constructor Details

    • SolidBlockMask

      public SolidBlockMask(Extent extent)
  • Method Details

    • test

      public boolean test(Extent extent, BlockVector3 position)
      Specified by:
      test in class AbstractExtentMask
    • 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
    • isSolid

      public static boolean isSolid(BlockState blockState)
      Returns whether the given block state is considered solid by this mask.
      Returns:
      whether the given block state is considered solid by this mask
      Since:
      2.13.0
    • copy

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