All Superinterfaces:
Inventory, Inventory2D, InventoryRow, ValueContainer

public interface Hotbar extends InventoryRow
A human's hotbar.
  • Method Details

    • selectedSlotIndex

      int selectedSlotIndex()
      Gets the index of the slot that is currently selected by the Humanoid.
      Returns:
      The slot being currently held as an integer from 0-8, inclusive
    • setSelectedSlotIndex

      void setSelectedSlotIndex(int index)
      Sets the slot selected by the Humanoid.
      Parameters:
      index - The slot to hold as an integer from 0-8, inclusive