Interface GuiClickContext


public interface GuiClickContext
Context containing information about a GUI slot interaction click.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.event.inventory.ClickType
    Gets the type of click performed.
    @NotNull org.bukkit.event.inventory.InventoryClickEvent
    Gets the underlying Bukkit inventory click event.
    @NotNull Gui
    Gets the GUI instance where this click occurred.
    @NotNull org.bukkit.entity.Player
    Gets the player who triggered the click.
    int
    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

      @NotNull @NotNull Gui getGui()
      Gets the GUI instance where this click occurred.
      Returns:
      the GUI