Interface INPCInventory


public interface INPCInventory
  • Method Details

    • getRightHand

      IItemStack getRightHand()
    • setRightHand

      void setRightHand​(IItemStack item)
    • getLeftHand

      IItemStack getLeftHand()
    • setLeftHand

      void setLeftHand​(IItemStack item)
    • getProjectile

      IItemStack getProjectile()
    • setProjectile

      void setProjectile​(IItemStack item)
    • getArmor

      IItemStack getArmor​(int slot)
      Parameters:
      slot - The armor slot to return. 0:head, 1:body, 2:legs, 3:boots
      Returns:
      Returns the armor item
    • setArmor

      void setArmor​(int slot, IItemStack item)
      Parameters:
      slot - The armor slot to return. 0:head, 1:body, 2:legs, 3:boots
      item -
    • setDropItem

      void setDropItem​(int slot, IItemStack item, int chance)
      Parameters:
      slot - 0-8
      item -
      chance - 1-100
    • getDropItem

      IItemStack getDropItem​(int slot)
      Parameters:
      slot - 0-8
    • getExpMin

      int getExpMin()
    • getExpMax

      int getExpMax()
    • getExpRNG

      int getExpRNG()
      Returns:
      Returns a value between expMin and expMax
    • setExp

      void setExp​(int min, int max)
      Sets the random exp dropped when the npc dies
    • getItemsRNG

      IItemStack[] getItemsRNG()