| Modifier and Type | Method and Description |
|---|---|
int |
clear(int id,
int data)
Deprecated.
Magic value
|
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.
|
void |
setChestplate(ItemStack chestplate)
Put the given ItemStack into the chestplate slot.
|
void |
setHeldItemSlot(int slot)
Set the slot number of the currently held item.
|
void |
setHelmet(ItemStack helmet)
Put the given ItemStack into the helmet slot.
|
void |
setItemInHand(ItemStack stack)
Sets the item in hand
|
void |
setLeggings(ItemStack leggings)
Put the given ItemStack into the leg slot.
|
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, setMaxStackSizeItemStack[] 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()
void setHeldItemSlot(int slot)
This validates whether the slot is between 0 and 8 inclusive.
slot - The new slot numberIllegalArgumentException - Thrown if slot is not between 0 and 8
inclusive@Deprecated 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 inventoryHumanEntity getHolder()
InventoryCopyright © 2015. All rights reserved.