Class SphereMask

java.lang.Object
baritone.api.schematic.mask.AbstractMask
baritone.api.schematic.mask.shape.SphereMask
All Implemented Interfaces:
Mask, StaticMask

public final class SphereMask extends AbstractMask implements StaticMask
Author:
Brady
  • Constructor Details

    • SphereMask

      public SphereMask(int widthX, int heightY, int lengthZ, boolean filled)
  • Method Details

    • partOfMask

      public boolean partOfMask(int x, int y, int z)
      Description copied from interface: StaticMask
      Determines if a given relative coordinate is included in this mask, without the need for the current block state.
      Specified by:
      partOfMask in interface StaticMask
      Parameters:
      x - The relative x position of the block
      y - The relative y position of the block
      z - The relative z position of the block
      Returns:
      Whether the given position is included in this mask