Class PlayerInventorySlot
- java.lang.Object
-
- net.egartley.beyondorigins.core.abstracts.Renderable
-
- net.egartley.beyondorigins.core.ui.UIElement
-
- net.egartley.beyondorigins.ingame.PlayerInventorySlot
-
-
Constructor Summary
Constructors Constructor Description PlayerInventorySlot(PlayerInventoryStack stack, int row, int column)
Creates a new slot, and calculates its position based on the row and column
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
isEmpty()
void
renderStack(org.newdawn.slick.Graphics graphics)
void
tick()
-
Methods inherited from class net.egartley.beyondorigins.core.ui.UIElement
isClickInBounds, render
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Renderable
setPosition, x, x, y, y
-
-
-
-
Field Detail
-
overallIndex
private static int overallIndex
-
index
public int index
-
baseItemX
public int baseItemX
-
baseItemY
public int baseItemY
-
MARGIN
public static final int MARGIN
- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
stack
public PlayerInventoryStack stack
-
-
Constructor Detail
-
PlayerInventorySlot
public PlayerInventorySlot(PlayerInventoryStack stack, int row, int column)
Creates a new slot, and calculates its position based on the row and column- Parameters:
stack
- The stack to display in the slotrow
- The slot's rowcolumn
- The slot's column
-
-