| Package | Description |
|---|---|
| me.mattstudios.mfgui.gui.components | |
| me.mattstudios.mfgui.gui.guis |
| Modifier and Type | Method and Description |
|---|---|
GuiItem |
ItemBuilder.asGuiItem() |
GuiItem |
ItemBuilder.asGuiItem(@NotNull GuiAction<org.bukkit.event.inventory.InventoryClickEvent> action) |
| Modifier and Type | Method and Description |
|---|---|
void |
GuiFiller.fill(@NotNull GuiItem guiItem)
Sets an GuiItem to fill up the entire inventory where there is no other item
|
void |
GuiFiller.fillBetweenPoints(int rowFrom,
int colFrom,
int rowTo,
int colTo,
@NotNull GuiItem guiItem)
Fills rectangle from points within the GUI
|
void |
GuiFiller.fillBorder(@NotNull GuiItem guiItem)
Fills the outside section of the GUI with a GuiItem
|
void |
GuiFiller.fillBottom(@NotNull GuiItem guiItem)
Fills bottom portion of the GUI
|
void |
GuiFiller.fillTop(@NotNull GuiItem guiItem)
Fills top portion of the GUI
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable GuiItem |
BaseGui.getGuiItem(int slot)
Gets a specific
GuiItem on the slot |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,GuiItem> |
PaginatedGui.getCurrentPageItems()
Gets an immutable
Map with all the current pages items |
Map<Integer,GuiItem> |
BaseGui.getGuiItems()
Gets an immutable
Map with all the GUI items |
List<GuiItem> |
PaginatedGui.getPageItems()
Gets an immutable
List with all the page items added to the GUI |
| Modifier and Type | Method and Description |
|---|---|
void |
PaginatedGui.addItem(GuiItem... items)
Overridden
BaseGui.addItem(GuiItem...) to add the items to the page instead |
void |
BaseGui.addItem(GuiItem... items)
Adds
GuiItems to the GUI without specific slot
It'll set the item to the next empty slot available |
void |
PaginatedGui.addItem(@NotNull GuiItem item)
Adds an
GuiItem to the next available slot in the page area |
void |
BaseGui.setItem(int slot,
@NotNull GuiItem guiItem)
Sets the
GuiItem to a specific slot on the GUI |
void |
BaseGui.setItem(int row,
int col,
@NotNull GuiItem guiItem)
Alternative
BaseGui.setItem(int, GuiItem) to set item that uses ROWS and COLUMNS instead of slots |
void |
BaseGui.setItem(@NotNull List<Integer> slots,
@NotNull GuiItem guiItem)
Alternative
BaseGui.setItem(int, GuiItem) to set item that takes a List of slots instead |
void |
BaseGui.updateItem(int slot,
@NotNull GuiItem item)
Alternative
BaseGui.updateItem(int, ItemStack) but creates a new GuiItem |
void |
BaseGui.updateItem(int row,
int col,
@NotNull GuiItem item)
Alternative
BaseGui.updateItem(int, GuiItem) that takes ROWS and COLUMNS instead of slots |
void |
PaginatedGui.updatePageItem(int slot,
@NotNull GuiItem item)
Alternative
PaginatedGui.updatePageItem(int, ItemStack) that uses GuiItem instead |
void |
PaginatedGui.updatePageItem(int row,
int col,
@NotNull GuiItem item)
Alternative
PaginatedGui.updatePageItem(int, GuiItem) that uses ROWS and COLUMNS instead |
Copyright © 2020. All rights reserved.