Interface Mask

All Known Subinterfaces:
StaticMask
All Known Implementing Classes:
AbstractMask, BinaryOperatorMask, BinaryOperatorMask.Static, CylinderMask, NotMask, NotMask.Static, SphereMask

public interface Mask
Author:
Brady
  • Method Details

    • partOfMask

      boolean partOfMask(int x, int y, int z, net.minecraft.world.level.block.state.BlockState currentState)
      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
      currentState - The current state of that block in the world, may be null
      Returns:
      Whether the given position is included in this mask
    • widthX

      int widthX()
    • heightY

      int heightY()
    • lengthZ

      int lengthZ()
    • not

      default Mask not()
    • union

      default Mask union(Mask other)
    • intersection

      default Mask intersection(Mask other)
    • xor

      default Mask xor(Mask other)