| Package | Description |
|---|---|
| me.mattstudios.mfgui.gui.components | |
| me.mattstudios.mfgui.gui.guis |
| Modifier and Type | Method and Description |
|---|---|
GuiItem |
ItemBuilder.asGuiItem(@NotNull GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action) |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseGui.addSlotAction(int slot,
@Nullable GuiAction<org.bukkit.event.inventory.InventoryClickEvent> slotAction)
Adds a
GuiAction for when clicking on a specific slot
See InventoryClickEvent |
void |
BaseGui.addSlotAction(int row,
int col,
@Nullable GuiAction<org.bukkit.event.inventory.InventoryClickEvent> slotAction)
Alternative method for
BaseGui.addSlotAction(int, GuiAction) to add a GuiAction to a specific slot using ROWS and COLUMNS instead of slots
See InventoryClickEvent |
void |
GuiItem.setAction(GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
Replaces the
GuiAction of the current GUI Item |
void |
BaseGui.setCloseGuiAction(@Nullable GuiAction<org.bukkit.event.inventory.InventoryCloseEvent> closeGuiAction)
Sets the
GuiAction to run once the inventory is closed
See InventoryCloseEvent |
void |
BaseGui.setDefaultClickAction(@Nullable GuiAction<org.bukkit.event.inventory.InventoryClickEvent> defaultClickAction)
Sets the
GuiAction of a default click on any item
See InventoryClickEvent |
void |
BaseGui.setDefaultTopClickAction(@Nullable GuiAction<org.bukkit.event.inventory.InventoryClickEvent> defaultTopClickAction)
Sets the
GuiAction of a default click on any item on the top part of the GUI
Top inventory being for example chests etc, instead of the Player inventory
See InventoryClickEvent |
void |
BaseGui.setDragAction(@Nullable GuiAction<org.bukkit.event.inventory.InventoryDragEvent> dragAction)
Sets the
GuiAction of a default drag action
See InventoryDragEvent |
void |
BaseGui.setOpenGuiAction(@Nullable GuiAction<org.bukkit.event.inventory.InventoryOpenEvent> openGuiAction)
Sets the
GuiAction to run when the GUI opens
See InventoryOpenEvent |
void |
BaseGui.setOutsideClickAction(@Nullable GuiAction<org.bukkit.event.inventory.InventoryClickEvent> outsideClickAction)
Sets the
GuiAction to run when clicking on the outside of the inventory
See InventoryClickEvent |
| Constructor and Description |
|---|
GuiItem(@NotNull org.bukkit.inventory.ItemStack itemStack,
GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
Main constructor of the GuiItem
|
GuiItem(@NotNull org.bukkit.Material material,
@Nullable GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action)
Alternate constructor that takes
Material instead of an ItemStack |
Copyright © 2020. All rights reserved.