- 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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.stefvanschie.inventoryframework.pane.util.Slot
Slot.Indexed, Slot.XY
-
Method Summary
boolean
int
Gets the x coordinate of this slot.
int
Gets the y coordinate of this slot.
int
-
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
-