| Package | Description |
|---|---|
| io.github.portlek.smartinventory |
the package that contains common interfaces.
|
| io.github.portlek.smartinventory.content |
the package that contains
Page's contents. |
| io.github.portlek.smartinventory.manager |
the package that contains
SmartInventory implementations. |
| io.github.portlek.smartinventory.opener |
the package that contains
InventoryOpener implementations. |
| io.github.portlek.smartinventory.page |
the package that contains
Page implementations. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Page |
Page.async(boolean async)
sets the task's async status.
|
static Page |
Page.build(@NotNull SmartInventory inventory)
creates a simple page instance from the given inventory.
|
static Page |
Page.build(@NotNull SmartInventory inventory,
@NotNull InventoryProvider provider)
creates a simple page instance from the given parameters.
|
default @NotNull Page |
Page.canClose(boolean canClose)
sets the can close to the given boolean.
|
@NotNull Page |
Page.canClose(@NotNull Predicate<CloseEvent> predicate)
sets the can close predicate of the page.
|
@NotNull Page |
Page.column(int column)
set the column of the page.
|
default <T extends PageEvent> |
Page.handle(@NotNull Class<T> clazz,
@NotNull Consumer<T> consumer,
@NotNull List<Predicate<T>> requirements)
adds the given consumer.
|
<T extends PageEvent> |
Page.handle(@NotNull Handle<T> handle)
adds the given handle.
|
@NotNull Page |
Page.id(@NotNull String id)
sets the id of the page.
|
@NotNull Page |
InventoryContents.page()
obtains the page of the
this. |
@NotNull Page |
Page.parent(@NotNull Page parent)
sets the parent of the page.
|
@NotNull Page |
Page.provider(@NotNull InventoryProvider provider)
sets the provider to the given provider
|
@NotNull Page |
Page.row(int row)
set the row of the page.
|
@NotNull Page |
Page.startDelay(long startDelay)
sets the start delay of the task.
|
@NotNull Page |
Page.tick(long tick)
sets the tick.
|
@NotNull Page |
Page.tickEnable(boolean tickEnable)
sets the task's activity.
|
@NotNull Page |
Page.title(@NotNull String title)
sets the title of the page.
|
default @NotNull Page |
Page.whenBottomClick(@NotNull Consumer<BottomClickEvent> consumer)
adds the given consumer as a bottom inventory click event.
|
default @NotNull Page |
Page.whenBottomClick(@NotNull Consumer<BottomClickEvent> consumer,
@NotNull List<Predicate<BottomClickEvent>> requirements)
adds the given consumer as a bottom inventory click event.
|
default @NotNull Page |
Page.whenClose(@NotNull Consumer<CloseEvent> consumer)
adds the given consumer as a close event.
|
default @NotNull Page |
Page.whenClose(@NotNull Consumer<CloseEvent> consumer,
@NotNull List<Predicate<CloseEvent>> requirements)
adds the given consumer as a close event.
|
default @NotNull Page |
Page.whenEmptyClick(@NotNull Consumer<PageClickEvent> consumer)
adds the given consumer as a empty slot click event.
|
default @NotNull Page |
Page.whenEmptyClick(@NotNull Consumer<PageClickEvent> consumer,
@NotNull List<Predicate<PageClickEvent>> requirements)
adds the given consumer as a empty slot click event.
|
default @NotNull Page |
Page.whenInit(@NotNull Consumer<InitEvent> consumer)
adds the given consumer as a init event.
|
default @NotNull Page |
Page.whenInit(@NotNull Consumer<InitEvent> consumer,
@NotNull List<Predicate<InitEvent>> requirements)
adds the given consumer as a init event.
|
default @NotNull Page |
Page.whenOpen(@NotNull Consumer<OpenEvent> consumer)
adds the given consumer as a open event.
|
default @NotNull Page |
Page.whenOpen(@NotNull Consumer<OpenEvent> consumer,
@NotNull List<Predicate<OpenEvent>> requirements)
adds the given consumer as a open event.
|
default @NotNull Page |
Page.whenOutsideClick(@NotNull Consumer<OutsideClickEvent> consumer)
adds the given consumer as a outside inventory click event.
|
default @NotNull Page |
Page.whenOutsideClick(@NotNull Consumer<OutsideClickEvent> consumer,
@NotNull List<Predicate<OutsideClickEvent>> requirements)
adds the given consumer as a outside inventory click event.
|
default @NotNull Page |
Page.whenTick(@NotNull Consumer<TickEvent> consumer)
adds the given consumer as a tick event.
|
default @NotNull Page |
Page.whenTick(@NotNull Consumer<TickEvent> consumer,
@NotNull List<Predicate<TickEvent>> requirements)
adds the given consumer as a tick event.
|
default @NotNull Page |
Page.whenUpdate(@NotNull Consumer<UpdateEvent> consumer)
adds the given consumer as a update event.
|
default @NotNull Page |
Page.whenUpdate(@NotNull Consumer<UpdateEvent> consumer,
@NotNull List<Predicate<UpdateEvent>> requirements)
adds the given consumer as a update event.
|
| Modifier and Type | Method and Description |
|---|---|
default @NotNull List<org.bukkit.entity.Player> |
SmartInventory.getOpenedPlayers(@NotNull Page page)
obtains the players that see the given page.
|
@NotNull org.bukkit.inventory.Inventory |
InventoryOpener.open(@NotNull Page page,
@NotNull org.bukkit.entity.Player player)
opens the page for the given player.
|
@NotNull Page |
Page.parent(@NotNull Page parent)
sets the parent of the page.
|
void |
SmartInventory.setPage(@NotNull org.bukkit.entity.Player player,
@NotNull Page page)
sets the given player of the page to the given page.
|
default void |
SmartInventory.tick(@NotNull org.bukkit.entity.Player player,
@NotNull Page page)
starts the ticking of the given player with the given page.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Page |
BasicInventoryContents.page() |
| Constructor and Description |
|---|
BasicInventoryContents(@NotNull Page page,
@NotNull org.bukkit.entity.Player player)
ctor.
|
BasicInventoryContents(@NotNull Page page,
@NotNull org.bukkit.entity.Player player,
@NotNull Icon[][] contents)
ctpr.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicSmartInventory.setPage(@NotNull org.bukkit.entity.Player player,
@NotNull Page page) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.inventory.Inventory |
ChestInventoryOpener.open(@NotNull Page page,
@NotNull org.bukkit.entity.Player player) |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicPage
an implementation for
Page. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Page |
BasicPage.async(boolean async) |
@NotNull Page |
BasicPage.canClose(@NotNull Predicate<CloseEvent> predicate) |
@NotNull Page |
BasicPage.column(int column) |
<T extends PageEvent> |
BasicPage.handle(@NotNull Handle<T> handle) |
@NotNull Page |
BasicPage.id(@NotNull String id) |
@NotNull Page |
BasicPage.parent(@NotNull Page parent) |
@NotNull Page |
BasicPage.provider(@NotNull InventoryProvider provider) |
@NotNull Page |
BasicPage.row(int row) |
@NotNull Page |
BasicPage.startDelay(long startDelay) |
@NotNull Page |
BasicPage.tick(long tick) |
@NotNull Page |
BasicPage.tickEnable(boolean tickEnable) |
@NotNull Page |
BasicPage.title(@NotNull String title) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Page |
BasicPage.parent(@NotNull Page parent) |
Copyright © 2021. All rights reserved.