Package com.shanebeestudios.snippets.gui
Class GUI.InventoryData
java.lang.Object
com.shanebeestudios.snippets.gui.GUI.InventoryData
- Enclosing class:
- GUI
Data involved when clicking a GUI slot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull InventoryAction
Get the inventory action of the click@Nullable ItemStack
Get the item which was clicked on@NotNull InventoryClickEvent
getEvent()
Get the click event@NotNull Player
Get the player who clickedint
getSlot()
Get the slot which was clickedGet the type of slot that was clicked
-
Constructor Details
-
InventoryData
-
-
Method Details
-
getEvent
Get the click event- Returns:
- Click event
-
getPlayer
Get the player who clicked- Returns:
- Player who clicked
-
getSlot
public int getSlot()Get the slot which was clicked- Returns:
- Slot which was clicked
-
getClickedItem
Get the item which was clicked on- Returns:
- Item which was clicked on
-
getAction
Get the inventory action of the click- Returns:
- Inventory action of the click
-
getSlotType
Get the type of slot that was clicked- Returns:
- Type of slot
-