Class InventoryActions
java.lang.Object
de.eldoria.eldoutilities.inventory.InventoryActions
Represens a set of
ActionItem
s.
Essentially a wrapper for a previously created inventory.
Handles inserting of items and event handling together with InventoryActionHandler
- Since:
- 1.1.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAction
(ActionItem action) Adds an action to the inventory actions.void
addAction
(ItemStack itemStack, int slot, Consumer<InventoryClickEvent> onClick, Consumer<@Nullable ItemStack> onClose) static InventoryActions
static InventoryActions
of
(Inventory inventory, Consumer<InventoryCloseEvent> onClose) void
void
-
Method Details
-
of
-
of
-
addAction
Adds an action to the inventory actions.Accoding to the documentation of
ActionItem
the item stack will be added at the given pos to the inventory.- Parameters:
action
- action to add
-
addAction
-
onInventoryClose
-
onInventoryClick
-