Class InventoryPosition
java.lang.Object
me.hsgamer.hscore.minecraft.gui.object.InventoryPosition
The position of the inventory
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getX()
Get the x coordinateint
getY()
Get the y coordinateint
hashCode()
static InventoryPosition
maxPosition
(int x1, int y1, int x2, int y2) Get the max positionstatic InventoryPosition
maxPosition
(InventoryPosition position1, InventoryPosition position2) Get the max positionstatic InventoryPosition
minPosition
(int x1, int y1, int x2, int y2) Get the min positionstatic InventoryPosition
minPosition
(InventoryPosition position1, InventoryPosition position2) Get the min positionstatic InventoryPosition
of
(int x, int y) Creates a new positionint
toSlot
(InventorySize size) Convert to slot
-
Method Details
-
of
Creates a new position- Parameters:
x
- the x coordinatey
- the y coordinate
-
maxPosition
Get the max position- Parameters:
x1
- the x of the first positiony1
- the y of the first positionx2
- the x of the second positiony2
- the y of the second position- Returns:
- the max position
-
maxPosition
public static InventoryPosition maxPosition(InventoryPosition position1, InventoryPosition position2) Get the max position- Parameters:
position1
- the first positionposition2
- the second position- Returns:
- the max position
-
minPosition
Get the min position- Parameters:
x1
- the x of the first positiony1
- the y of the first positionx2
- the x of the second positiony2
- the y of the second position- Returns:
- the min position
-
minPosition
public static InventoryPosition minPosition(InventoryPosition position1, InventoryPosition position2) Get the min position- Parameters:
position1
- the first positionposition2
- the second position- Returns:
- the min position
-
getX
public int getX()Get the x coordinate- Returns:
- the x coordinate
-
getY
public int getY()Get the y coordinate- Returns:
- the y coordinate
-
toSlot
Convert to slot- Parameters:
size
- the size of the inventory- Returns:
- the slot
-
equals
-
hashCode
public int hashCode()
-