public final class Inventories extends Object
| Modifier and Type | Method and Description | 
|---|---|
static Integer[] | 
findPlacement(Item item,
             Inventory inv)
Returns the slot(s) that an  
Item would be placed into. | 
static int | 
getHeldItemSlot(Player p)
Returns the inventory slot for the item in a Player's hand. 
 | 
static boolean | 
hasClickedTop(InventoryClickEvent event)
Returns whether or not the player clicked the top or bottom inventory 
 | 
public static boolean hasClickedTop(InventoryClickEvent event)
event - The relevant InventoryClickEventtrue for clicking the top, false otherwisepublic static int getHeldItemSlot(Player p)
p - The player to get the item slot fromIllegalStateException - if the item is modified during the method
                               executionCopyright © 2017. All rights reserved.