| Modifier and Type | Field and Description |
|---|---|
protected org.bukkit.inventory.Inventory |
inventory
The clicked inventory.
|
protected int |
slot
The index of the slot clicked.
|
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.Inventory |
getClickedInventory()
Get the Inventory that was clicked.
|
int |
getIndex()
Get the index of the slot.
|
@Nullable org.bukkit.inventory.ItemStack |
getItem()
Get the item in the slot.
|
void |
setItem(org.bukkit.inventory.ItemStack itemStack)
Set a new item in the slot.
|
protected final org.bukkit.inventory.Inventory inventory
protected final int slot
public org.bukkit.inventory.Inventory getClickedInventory()
public int getIndex()
InventoryClickEvent.getSlot()
(value in context of clicked inventory)@Nullable public @Nullable org.bukkit.inventory.ItemStack getItem()
public void setItem(org.bukkit.inventory.ItemStack itemStack)
itemStack - a new itemCopyright © 2021. All rights reserved.