java.lang.Object
com.github.stefvanschie.inventoryframework.pane.util.Slot.XY
All Implemented Interfaces:
Slot
Enclosing interface:
Slot

public static class Slot.XY extends Object implements Slot
A class representing a slot based on an (x, y) coordinate pair.
Since:
0.10.8
  • Method Details

    • getX

      public int getX(int length)
      Description copied from interface: Slot
      Gets the x coordinate of this slot.
      Specified by:
      getX in interface Slot
      Parameters:
      length - the length of the parent container
      Returns:
      the x coordinate of this slot
    • getY

      public int getY(int length)
      Description copied from interface: Slot
      Gets the y coordinate of this slot.
      Specified by:
      getY in interface Slot
      Parameters:
      length - the length of the parent container
      Returns:
      the y coordinate of this slot
    • equals

      public boolean equals(@Nullable @Nullable Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object