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 InventoryActionGet the inventory action of the click@Nullable ItemStackGet the item which was clicked on@NotNull InventoryClickEventgetEvent()Get the click event@NotNull PlayerGet the player who clickedintgetSlot()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
-