| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlayerInventory
Includes interface to the 4 armor slots
| Method Summary | |
|---|---|
|  int | clear(int id,
      int data)Clears all matching items from the inventory. | 
|  ItemStack[] | getArmorContents()Get all ItemStacks from the armor slots | 
|  ItemStack | getBoots()Return the ItemStack from the boots slot | 
|  ItemStack | getChestplate()Return the ItemStack from the chestplate slot | 
|  int | getHeldItemSlot()Get the slot number of the currently held item | 
|  ItemStack | getHelmet()Return the ItemStack from the helmet slot | 
|  HumanEntity | getHolder()Gets the block or entity belonging to the open inventory | 
|  ItemStack | getItemInHand()Returns the ItemStack currently hold | 
|  ItemStack | getLeggings()Return the ItemStack from the leg slot | 
|  void | setArmorContents(ItemStack[] items)Put the given ItemStacks into the armor slots | 
|  void | setBoots(ItemStack boots)Put the given ItemStack into the boots slot This does not check if the ItemStack is a boots | 
|  void | setChestplate(ItemStack chestplate)Put the given ItemStack into the chestplate slot This does not check if the ItemStack is a chestplate | 
|  void | setHelmet(ItemStack helmet)Put the given ItemStack into the helmet slot This does not check if the ItemStack is a helmet | 
|  void | setItemInHand(ItemStack stack)Sets the item in hand | 
|  void | setLeggings(ItemStack leggings)Put the given ItemStack into the leg slot This does not check if the ItemStack is a pair of leggings | 
| Methods inherited from interface org.bukkit.inventory.Inventory | 
|---|
| addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize | 
| Method Detail | 
|---|
ItemStack[] getArmorContents()
ItemStack getHelmet()
ItemStack getChestplate()
ItemStack getLeggings()
ItemStack getBoots()
void setArmorContents(ItemStack[] items)
items - The ItemStacks to use as armourvoid setHelmet(ItemStack helmet)
helmet - The ItemStack to use as helmetvoid setChestplate(ItemStack chestplate)
chestplate - The ItemStack to use as chestplatevoid setLeggings(ItemStack leggings)
leggings - The ItemStack to use as leggingsvoid setBoots(ItemStack boots)
boots - The ItemStack to use as bootsItemStack getItemInHand()
void setItemInHand(ItemStack stack)
stack - Stack to setint getHeldItemSlot()
int clear(int id,
          int data)
id - the id of the item you want to clear from the inventorydata - the data of the item you want to clear from the inventory
HumanEntity getHolder()
Inventory
getHolder in interface Inventory| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||