Interface Mask

All Known Implementing Classes:
AbstractExtentMask, AbstractMask, BiomeMask, BlockCategoryMask, BlockMask, BlockStateMask, BlockTypeMask, BoundedHeightMask, ExistingBlockMask, ExpressionMask, MaskIntersection, MaskUnion, NoiseFilter, OffsetMask, OffsetsMask, RegionMask, SolidBlockMask

public interface Mask
Tests whether a given vector meets a criteria.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the criteria is met.
    Get the 2D version of this mask if one exists.
  • Method Details

    • test

      boolean test(BlockVector3 vector)
      Returns true if the criteria is met.
      Parameters:
      vector - the vector to test
      Returns:
      true if the criteria is met
    • toMask2D

      @Nullable Mask2D toMask2D()
      Get the 2D version of this mask if one exists.
      Returns:
      a 2D mask version or null if this mask can't be 2D