| Package | Description |
|---|---|
| me.lucko.helper.item | |
| me.lucko.helper.menu | |
| me.lucko.helper.menu.paginated | |
| me.lucko.helper.menu.scheme |
| Modifier and Type | Method and Description |
|---|---|
Item |
ItemStackBuilder.build(org.bukkit.event.inventory.ClickType type,
Runnable handler) |
Item |
ItemStackBuilder.build(Runnable handler) |
Item |
ItemStackBuilder.build(Runnable rightClick,
Runnable leftClick) |
Item |
ItemStackBuilder.buildConsumer(org.bukkit.event.inventory.ClickType type,
Consumer<org.bukkit.event.inventory.InventoryClickEvent> handler) |
Item |
ItemStackBuilder.buildConsumer(Consumer<org.bukkit.event.inventory.InventoryClickEvent> handler) |
Item |
ItemStackBuilder.buildConsumer(Consumer<org.bukkit.event.inventory.InventoryClickEvent> rightClick,
Consumer<org.bukkit.event.inventory.InventoryClickEvent> leftClick) |
Item |
ItemStackBuilder.buildFromConsumerMap(Map<org.bukkit.event.inventory.ClickType,Consumer<org.bukkit.event.inventory.InventoryClickEvent>> handlers) |
Item |
ItemStackBuilder.buildFromMap(Map<org.bukkit.event.inventory.ClickType,Runnable> handlers) |
| Modifier and Type | Method and Description |
|---|---|
Item |
Item.Builder.build() |
| Modifier and Type | Method and Description |
|---|---|
void |
Gui.addItem(Item item) |
Slot |
DummySlot.applyFromItem(Item item) |
Slot |
Slot.applyFromItem(Item item)
Applies an item model to this slot.
|
Slot |
SimpleSlot.applyFromItem(Item item)
Applies an item model to this slot.
|
void |
Gui.fillWith(Item item) |
void |
Gui.setItem(int slot,
Item item) |
void |
Gui.setItems(Item item,
int... slots) |
void |
Gui.setItems(Iterable<Integer> slots,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
void |
Gui.addItems(Iterable<Item> items) |
| Modifier and Type | Method and Description |
|---|---|
PaginatedGui |
PaginatedGuiBuilder.build(org.bukkit.entity.Player player,
Function<PaginatedGui,List<Item>> content) |
void |
PaginatedGui.updateContent(List<Item> content) |
| Constructor and Description |
|---|
PaginatedGui(Function<PaginatedGui,List<Item>> content,
org.bukkit.entity.Player player,
PaginatedGuiBuilder model) |
| Modifier and Type | Method and Description |
|---|---|
Item |
SchemeMapping.getNullable(int key)
Gets an item from the mapping which represents the given key.
|
Item |
FunctionalSchemeMapping.getNullable(int key) |
Item |
AbstractSchemeMapping.getNullable(int key) |
| Modifier and Type | Method and Description |
|---|---|
default Optional<Item> |
SchemeMapping.get(int key)
Gets an item from the mapping which represents the given key.
|
| Modifier and Type | Method and Description |
|---|---|
MenuPopulator |
MenuPopulator.accept(Item item)
Places an item onto the
Gui using the next available slot in the populator |
MenuPopulator |
MenuPopulator.acceptIfSpace(Item item)
Places an item onto the
Gui using the next available slot in the populator |
boolean |
MenuPopulator.placeIfSpace(Item item)
Places an item onto the
Gui using the next available slot in the populator |
| Modifier and Type | Method and Description |
|---|---|
static SchemeMapping |
FunctionalSchemeMapping.of(IntFunction<Item> function,
com.google.common.collect.Range<Integer> validRange) |
static SchemeMapping |
AbstractSchemeMapping.of(Map<Integer,Item> mapping) |
Copyright © 2022. All rights reserved.