Package me.yleoft.zAPI.listeners
Class ItemListeners
java.lang.Object
me.yleoft.zAPI.utils.NbtUtils
me.yleoft.zAPI.listeners.ItemListeners
- All Implemented Interfaces:
org.bukkit.event.Listener
ItemListeners is a listener class for handling item interactions in inventories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonClick(@NotNull org.bukkit.event.inventory.InventoryClickEvent event) Search for custom commands in the item clicked.voidperformCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command) Methods inherited from class me.yleoft.zAPI.utils.NbtUtils
addCustomCommand, addCustomCommand, addCustomCommand, addCustomCommands, addCustomCommands, addCustomCommands, addCustomCommands, getCustomCommands, isMarked, markItem, removeCustomCommand, unmarkItem
-
Constructor Details
-
ItemListeners
public ItemListeners()
-
-
Method Details
-
onClick
public void onClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Search for custom commands in the item clicked.- Parameters:
event-InventoryClickEvent
-
performCommand
public void performCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command)
-