public final class Inventories extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getHeldItemSlot(org.bukkit.entity.Player p)
Returns the inventory slot for the item in a Player's hand.
|
static boolean |
hasClickedTop(org.bukkit.event.inventory.InventoryClickEvent event)
Returns whether or not the player clicked the top or bottom inventory
|
public static boolean hasClickedTop(org.bukkit.event.inventory.InventoryClickEvent event)
event
- The relevant InventoryClickEvent
true
for clicking the top, false
otherwisepublic static int getHeldItemSlot(org.bukkit.entity.Player p)
p
- The player to get the item slot fromIllegalStateException
- if the item is modified during the method
executionCopyright © 2015. All rights reserved.