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