| Package | Description |
|---|---|
| me.lucko.helper.menu | |
| me.lucko.helper.menu.scheme |
| Modifier and Type | Class and Description |
|---|---|
class |
DummySlot
Useless implementation of
Slot to fulfill not-null contracts. |
class |
SimpleSlot
Basic implementation of
Slot. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Slot |
DummySlot.bind(ClickType type,
Consumer<InventoryClickEvent> handler) |
Slot |
Slot.bind(ClickType type,
Consumer<InventoryClickEvent> handler) |
Slot |
SimpleSlot.bind(ClickType type,
Consumer<InventoryClickEvent> handler) |
Slot |
DummySlot.bind(ClickType type,
Runnable handler) |
Slot |
Slot.bind(ClickType type,
Runnable handler) |
Slot |
SimpleSlot.bind(ClickType type,
Runnable handler) |
Slot |
DummySlot.bind(Consumer<InventoryClickEvent> handler,
ClickType... types) |
Slot |
Slot.bind(Consumer<InventoryClickEvent> handler,
ClickType... types) |
Slot |
SimpleSlot.bind(Consumer<InventoryClickEvent> handler,
ClickType... types) |
Slot |
DummySlot.bind(Runnable handler,
ClickType... types) |
Slot |
Slot.bind(Runnable handler,
ClickType... types) |
Slot |
SimpleSlot.bind(Runnable handler,
ClickType... types) |
<T extends Consumer<InventoryClickEvent>> |
DummySlot.bindAllConsumers(Iterable<Map.Entry<ClickType,T>> handlers) |
<T extends Consumer<InventoryClickEvent>> |
Slot.bindAllConsumers(Iterable<Map.Entry<ClickType,T>> handlers) |
<T extends Consumer<InventoryClickEvent>> |
SimpleSlot.bindAllConsumers(Iterable<Map.Entry<ClickType,T>> handlers) |
<T extends Runnable> |
DummySlot.bindAllRunnables(Iterable<Map.Entry<ClickType,T>> handlers) |
<T extends Runnable> |
Slot.bindAllRunnables(Iterable<Map.Entry<ClickType,T>> handlers) |
<T extends Runnable> |
SimpleSlot.bindAllRunnables(Iterable<Map.Entry<ClickType,T>> handlers) |
Slot |
DummySlot.clear() |
Slot |
Slot.clear()
Clears all attributes of the slot.
|
Slot |
SimpleSlot.clear()
Clears all attributes of the slot.
|
Slot |
DummySlot.clearBindings() |
Slot |
Slot.clearBindings()
Clears all bindings on this slot.
|
Slot |
SimpleSlot.clearBindings()
Clears all bindings on this slot.
|
Slot |
DummySlot.clearBindings(ClickType type) |
Slot |
Slot.clearBindings(ClickType type)
Clears all bindings on this slot for a given click type.
|
Slot |
SimpleSlot.clearBindings(ClickType type)
Clears all bindings on this slot for a given click type.
|
Slot |
DummySlot.clearItem() |
Slot |
Slot.clearItem()
Clears the item in this slot
|
Slot |
SimpleSlot.clearItem()
Clears the item in this slot
|
Slot |
Gui.getSlot(int slot) |
Slot |
DummySlot.setItem(ItemStack item) |
Slot |
Slot.setItem(ItemStack item)
Sets the item in this slot
|
Slot |
SimpleSlot.setItem(ItemStack item)
Sets the item in this slot
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Slot> |
Gui.getFirstEmptySlot() |
| Modifier and Type | Method and Description |
|---|---|
MenuPopulator |
MenuPopulator.consume(Consumer<Slot> action) |
MenuPopulator |
MenuPopulator.consumeIfSpace(Consumer<Slot> action) |
boolean |
MenuPopulator.tryConsume(Consumer<Slot> action) |
Copyright © 2020. All rights reserved.