Interface MineSelection


public interface MineSelection
Represents a selection of two positions defining a mine's boundaries.
  • Method Summary

    Modifier and Type
    Method
    Description
    me.lucko.helper.serialize.Position
    Gets the first position of the mine selection.
    me.lucko.helper.serialize.Position
    Gets the second position of the mine selection.
    of(me.lucko.helper.serialize.Position position1, me.lucko.helper.serialize.Position position2)
    Creates a new MineSelection instance with the given two positions.
  • Method Details

    • getPosition1

      me.lucko.helper.serialize.Position getPosition1()
      Gets the first position of the mine selection.
      Returns:
      The first Position
    • getPosition2

      me.lucko.helper.serialize.Position getPosition2()
      Gets the second position of the mine selection.
      Returns:
      The second Position
    • of

      static MineSelection of(me.lucko.helper.serialize.Position position1, me.lucko.helper.serialize.Position position2)
      Creates a new MineSelection instance with the given two positions.
      Parameters:
      position1 - The first position of the selection
      position2 - The second position of the selection
      Returns:
      A new MineSelection instance representing the two positions