public class PlayerInventoryState extends InventoryState
PlayerInventory| Constructor and Description |
|---|
PlayerInventoryState(org.bukkit.inventory.PlayerInventory i)
Copies the contents of the passed
PlayerInventory |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack |
getBoots()
Returns the item in the boots slot of the
PlayerInventory |
org.bukkit.inventory.ItemStack |
getChestplate()
Returns the item in the torso slot of the
PlayerInventory |
org.bukkit.inventory.ItemStack |
getHelmet()
Returns the item in the helmet slot of the
PlayerInventory |
org.bukkit.inventory.ItemStack |
getLeggings()
Returns the item in the pants slot of the
PlayerInventory |
void |
setContents(org.bukkit.inventory.InventoryHolder holder)
Sets the contents of this state into an
InventoryHolder |
getContents, getItem, sizepublic PlayerInventoryState(org.bukkit.inventory.PlayerInventory i)
PlayerInventoryi - The PlayerInventory to copypublic org.bukkit.inventory.ItemStack getHelmet()
PlayerInventoryPlayerInventorypublic org.bukkit.inventory.ItemStack getChestplate()
PlayerInventoryPlayerInventorypublic org.bukkit.inventory.ItemStack getLeggings()
PlayerInventoryPlayerInventorypublic org.bukkit.inventory.ItemStack getBoots()
PlayerInventoryPlayerInventorypublic void setContents(org.bukkit.inventory.InventoryHolder holder)
InventoryHoldersetContents in class InventoryStateholder - The InventoryHolder to set the contents ofIllegalArgumentException - If the InventoryHolder is not a
HumanEntityCopyright © 2015. All rights reserved.