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