Class ItemClick

java.lang.Object
dev.aurelium.slate.info.MenuInfo
dev.aurelium.slate.item.ItemClick
Direct Known Subclasses:
TemplateClick

public class ItemClick extends MenuInfo
Stores contextual data for when a player clicks an item.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemClick(Slate slate, org.bukkit.entity.Player player, org.bukkit.event.inventory.InventoryClickEvent event, org.bukkit.inventory.ItemStack item, SlotPos pos, ActiveMenu menu)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.event.inventory.InventoryClickEvent
    Gets the original Bukkit event for the inventory click.
    org.bukkit.inventory.ItemStack
    Gets the ItemStack that was clicked.
    pos()
    Gets the slot position that was clicked.

    Methods inherited from class dev.aurelium.slate.info.MenuInfo

    locale, menu, player

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemClick

      public ItemClick(Slate slate, org.bukkit.entity.Player player, org.bukkit.event.inventory.InventoryClickEvent event, org.bukkit.inventory.ItemStack item, SlotPos pos, ActiveMenu menu)
  • Method Details

    • event

      public org.bukkit.event.inventory.InventoryClickEvent event()
      Gets the original Bukkit event for the inventory click.
      Returns:
      the InventoryClickEvent
    • item

      public org.bukkit.inventory.ItemStack item()
      Gets the ItemStack that was clicked.
      Returns:
      the clicked ItemStack
    • pos

      public SlotPos pos()
      Gets the slot position that was clicked.
      Returns:
      the clicked slot