Class GuiListener
java.lang.Object
com.github.stefvanschie.inventoryframework.gui.GuiListener
- All Implemented Interfaces:
Listener
-
Constructor Summary
ConstructorsConstructorDescriptionGuiListener(@NotNull Plugin plugin) Creates a new listener for all guis for the providedplugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntityPickupItem(@NotNull EntityPickupItemEvent event) Handles users picking up items while their bottom inventory is in use.voidonInventoryClick(@NotNull InventoryClickEvent event) Handles clicks in inventoriesvoidonInventoryClose(@NotNull InventoryCloseEvent event) Handles closing in inventoriesvoidonInventoryDrag(@NotNull InventoryDragEvent event) Handles drag eventsvoidonInventoryOpen(@NotNull InventoryOpenEvent event) Registers newly opened inventoriesvoidonPlayerDropItem(@NotNull PlayerDropItemEvent event) Handles removing identifiers from gui items when an item is dropped from the gui.voidonPluginDisable(@NotNull PluginDisableEvent event) Handles the disabling of the pluginvoidonTradeSelect(@NotNull TradeSelectEvent event) Handles the selection of trades in merchant guis
-
Constructor Details
-
GuiListener
Creates a new listener for all guis for the providedplugin.- Parameters:
plugin- the owning plugin of this listener- Since:
- 0.10.8
-
-
Method Details
-
onInventoryClick
Handles clicks in inventories- Parameters:
event- the event fired- Since:
- 0.5.4
-
onEntityPickupItem
Handles users picking up items while their bottom inventory is in use.- Parameters:
event- the event fired when an entity picks up an item- Since:
- 0.6.1
-
onInventoryDrag
Handles drag events- Parameters:
event- the event fired- Since:
- 0.6.1
-
onTradeSelect
Handles the selection of trades in merchant guis- Parameters:
event- the event fired
-
onInventoryClose
Handles closing in inventories- Parameters:
event- the event fired- Since:
- 0.5.4
-
onPlayerDropItem
Handles removing identifiers from gui items when an item is dropped from the gui.- Parameters:
event- the event fired- Since:
- 0.12.0
-
onInventoryOpen
Registers newly opened inventories- Parameters:
event- the event fired- Since:
- 0.5.19
-
onPluginDisable
Handles the disabling of the plugin- Parameters:
event- the event fired- Since:
- 0.5.19
-