Class InventoryActionHandler
java.lang.Object
de.eldoria.eldoutilities.inventory.InventoryActionHandler
- All Implemented Interfaces:
Listener
A InventoryActionHandler allows to handle basic click uis easily.
- Since:
- 1.1.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryActionHandler
static InventoryActionHandler
static InventoryActionHandler
getPluginInventoryHandler
(Class<? extends Plugin> plugin) void
void
Wraps an inventory in inventory actions and registers it.wrap
(Player player, Inventory inventory, Consumer<InventoryCloseEvent> onClose)
-
Constructor Details
-
InventoryActionHandler
public InventoryActionHandler() -
InventoryActionHandler
-
-
Method Details
-
create
-
create
-
getPluginInventoryHandler
-
wrap
Wraps an inventory in inventory actions and registers it.- Parameters:
player
- player of intenvory actionsinventory
- inventory with actions- Returns:
- inventory wrapped into inventory actions.
-
wrap
public InventoryActions wrap(Player player, Inventory inventory, Consumer<InventoryCloseEvent> onClose) -
onInventoryClose
-
onInventoryClick
-