Package dev.aurelium.slate.item
Class ItemClick
java.lang.Object
dev.aurelium.slate.info.MenuInfo
dev.aurelium.slate.item.ItemClick
- Direct Known Subclasses:
TemplateClick
Stores contextual data for when a player clicks an item.
-
Constructor Summary
ConstructorsConstructorDescriptionItemClick(Slate slate, org.bukkit.entity.Player player, org.bukkit.event.inventory.InventoryClickEvent event, org.bukkit.inventory.ItemStack item, SlotPos pos, ActiveMenu menu) -
Method Summary
-
Constructor Details
-
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
Gets the slot position that was clicked.- Returns:
- the clicked slot
-