Class PlayerInventorySlot

  • All Implemented Interfaces:
    Tickable

    public class PlayerInventorySlot
    extends UIElement
    A graphical slot in the player's inventory that the user can interact with and manipulate
    • 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 slot
        row - The slot's row
        column - The slot's column
    • Method Detail

      • renderStack

        public void renderStack​(org.newdawn.slick.Graphics graphics)
      • clear

        public void clear()
      • isEmpty

        public boolean isEmpty()