java.lang.Object
me.remigio07.chatplugin.api.server.util.adapter.inventory.ClickEventAdapter

public class ClickEventAdapter extends Object
Environment indipendent (Bukkit and Sponge) click event adapter.
  • Constructor Details

  • Method Details

    • getClickType

      public ClickEventAdapter.ClickTypeAdapter getClickType()
      Gets the click's type.
      Returns:
      Click's type
    • getClickAction

      public ClickEventAdapter.ClickActionAdapter getClickAction()
      Gets the click's action.
      Returns:
      Click's action
    • getCursor

      public ItemStackAdapter getCursor()
      Gets the item on the cursor.

      Will return null if the cursor is not holding any items.

      Returns:
      Item on the cursor
    • getSlot

      public int getSlot()
      Gets the clicked slot.
      Returns:
      Clicked slot, -1 if invalid
    • getNumberKey

      public int getNumberKey()
      Gets the clicked number key.
      Returns:
      Clicked number key [0 - 8], -1 if none