Package org.yuemi.libs.api.gui
Interface GuiClickContext
public interface GuiClickContext
Context containing information about a GUI slot interaction click.
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.event.inventory.ClickTypeGets the type of click performed.@NotNull org.bukkit.event.inventory.InventoryClickEventgetEvent()Gets the underlying Bukkit inventory click event.@NotNull GuigetGui()Gets the GUI instance where this click occurred.@NotNull org.bukkit.entity.PlayerGets the player who triggered the click.intgetSlot()Gets the raw inventory slot index that was clicked.
-
Method Details
-
getPlayer
@NotNull @NotNull org.bukkit.entity.Player getPlayer()Gets the player who triggered the click.- Returns:
- the player
-
getSlot
int getSlot()Gets the raw inventory slot index that was clicked.- Returns:
- the slot index
-
getClickType
@NotNull @NotNull org.bukkit.event.inventory.ClickType getClickType()Gets the type of click performed.- Returns:
- the click type
-
getEvent
@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent getEvent()Gets the underlying Bukkit inventory click event.- Returns:
- the click event
-
getGui
Gets the GUI instance where this click occurred.- Returns:
- the GUI
-