|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Item in <Unnamed> |
---|
Modifier and Type | Method and Description |
---|---|
Item[] |
Inventory.getContents()
|
Item[] |
ItemArray.getContents()
Returns the contents of this chest |
Item |
Inventory.getItemFromId(int id)
|
Item |
ItemArray.getItemFromId(int id)
Retrieves from the slot |
Item |
Inventory.getItemFromId(int id,
int maxAmount)
|
Item |
ItemArray.getItemFromId(int id,
int maxAmount)
Retrieves from the slot |
Item |
Inventory.getItemFromId(Item.Type type)
|
Item |
ItemArray.getItemFromId(Item.Type type)
Retrieves from the slot |
Item |
Inventory.getItemFromId(Item.Type type,
int maxAmount)
|
Item |
ItemArray.getItemFromId(Item.Type type,
int maxAmount)
Retrieves from the slot |
Item |
Inventory.getItemFromSlot(int slot)
|
Item |
ItemArray.getItemFromSlot(int slot)
Retrieves from the slot |
Modifier and Type | Method and Description |
---|---|
void |
Inventory.addItem(Item item)
|
void |
ItemArray.addItem(Item item)
Adds the specified item. |
void |
Player.giveItem(Item item)
Gives an item to the player |
void |
Player.giveItemDrop(Item item)
Gives the player this item by dropping it in front of them |
boolean |
PluginListener.onBlockPlace(Player player,
Block blockPlaced,
Block blockClicked,
Item itemInHand)
Called when someone places a block. |
void |
PluginListener.onBlockRightClicked(Player player,
Block blockClicked,
Item item)
Called when someone presses right click aimed at a block. |
boolean |
PluginListener.onInventoryCursorSwap(Player player,
Inventory inventory,
java.lang.Integer slot,
Item oldItemInSlot,
Item newItemInSlot)
Called when a slot's contents are swapped with the contents of the cursor. |
boolean |
PluginListener.onInventoryPlaceItem(Player player,
Inventory inventory,
Item placedItem,
java.lang.Integer slot)
Called when the player places an inventory item, or adds amount to an existing inventory slot. |
boolean |
PluginListener.onInventoryTakeItem(Player player,
Inventory inventory,
Item takenItem,
java.lang.Integer slot)
Called when the player takes an inventory item, whether they selected half or the whole slot. |
boolean |
PluginListener.onItemDrop(Player player,
Item item)
Called when a player drops an item. |
boolean |
PluginListener.onItemPickUp(Player player,
Item item)
Called when a player picks up an item. |
boolean |
PluginListener.onItemUse(Player player,
Block blockPlaced,
Block blockClicked,
Item item)
Called when a player uses an item (rightclick with item in hand) |
void |
Inventory.removeItem(Item item)
|
void |
ItemArray.removeItem(Item item)
Removes the item. |
void |
Inventory.setContents(Item[] contents)
|
void |
ItemArray.setContents(Item[] contents)
Sets the contents |
void |
Inventory.setSlot(Item item,
int slot)
|
void |
ItemArray.setSlot(Item item,
int slot)
Sets the specified slot with item |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |