Module gomint.api

Interface PlayerInventory

  • All Superinterfaces:
    Inventory

    public interface PlayerInventory
    extends Inventory
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • getItemInHand

        ItemStack getItemInHand()
        Get the item in hand
        Returns:
        item stack which the client holds in hand
      • getItemInHandSlot

        byte getItemInHandSlot()
        Get the index of the item in hand in this inventory
        Returns:
        index of item in hand
      • setItemInHandSlot

        void setItemInHandSlot​(byte slot)
        Set the item in hand slot for the player
        Parameters:
        slot - which should be the new item in hand