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, size
public PlayerInventoryState(org.bukkit.inventory.PlayerInventory i)
PlayerInventory
i
- The PlayerInventory
to copypublic org.bukkit.inventory.ItemStack getHelmet()
PlayerInventory
PlayerInventory
public org.bukkit.inventory.ItemStack getChestplate()
PlayerInventory
PlayerInventory
public org.bukkit.inventory.ItemStack getLeggings()
PlayerInventory
PlayerInventory
public org.bukkit.inventory.ItemStack getBoots()
PlayerInventory
PlayerInventory
public void setContents(org.bukkit.inventory.InventoryHolder holder)
InventoryHolder
setContents
in class InventoryState
holder
- The InventoryHolder
to set the contents ofIllegalArgumentException
- If the InventoryHolder
is not a
HumanEntity
Copyright © 2015. All rights reserved.