| Constructor and Description |
|---|
BasicPage(@NotNull SmartInventory inventory)
ctor.
|
BasicPage(@NotNull SmartInventory inventory,
@NotNull InventoryProvider provider)
ctor.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends PageEvent> |
accept(T event)
accepts the upcoming event.
|
boolean |
async()
obtains status of the task in terms of async.
|
@NotNull Page |
async(boolean async)
sets the task's async status.
|
boolean |
canClose(@NotNull CloseEvent event)
checks the can close with the given event.
|
@NotNull Page |
canClose(@NotNull Predicate<CloseEvent> predicate)
sets the can close predicate of the page.
|
void |
close(@NotNull org.bukkit.entity.Player player)
closes the player's page.
|
int |
column()
obtains column of the page.
|
@NotNull Page |
column(int column)
set the column of the page.
|
<T extends PageEvent> |
handle(@NotNull Handle<T> handle)
adds the given handle.
|
@NotNull String |
id()
obtains id of the page.
|
@NotNull Page |
id(@NotNull String id)
sets the id of the page.
|
@NotNull SmartInventory |
inventory()
obtains the page's inventory manager.
|
void |
notifyUpdate(@NotNull InventoryContents contents)
runs the
Page.provider()'s InventoryProvider.update(InventoryContents) method with the given contents. |
@NotNull org.bukkit.inventory.Inventory |
open(@NotNull org.bukkit.entity.Player player,
int page,
@NotNull Map<String,Object> properties)
opens the page for the player.
|
@NotNull Optional<Page> |
parent()
obtains tha parent page of
this. |
@NotNull Page |
parent(@NotNull Page parent)
sets the parent of the page.
|
@NotNull InventoryProvider |
provider()
obtains the inventory provider.
|
@NotNull Page |
provider(@NotNull InventoryProvider provider)
sets the provider to the given provider
|
int |
row()
obtains row of the page.
|
@NotNull Page |
row(int row)
set the row of the page.
|
long |
startDelay()
obtains the start delay for the task.
|
@NotNull Page |
startDelay(long startDelay)
sets the start delay of the task.
|
long |
tick()
obtains the tick amount.
|
@NotNull Page |
tick(long tick)
sets the tick.
|
boolean |
tickEnable()
obtains the task enable.
|
@NotNull Page |
tickEnable(boolean tickEnable)
sets the task's activity.
|
@NotNull String |
title()
obtains title of the page.
|
@NotNull Page |
title(@NotNull String title)
sets the title of the page.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, build, canClose, checkBounds, handle, notifyUpdateForAll, notifyUpdateForAllById, open, open, open, whenBottomClick, whenBottomClick, whenClose, whenClose, whenEmptyClick, whenEmptyClick, whenInit, whenInit, whenOpen, whenOpen, whenOutsideClick, whenOutsideClick, whenTick, whenTick, whenUpdate, whenUpdatepublic BasicPage(@NotNull
@NotNull SmartInventory inventory,
@NotNull
@NotNull InventoryProvider provider)
inventory - the inventory.provider - the provider.public BasicPage(@NotNull
@NotNull SmartInventory inventory)
inventory - the inventory.@NotNull public <T extends PageEvent> @NotNull Page handle(@NotNull @NotNull Handle<T> handle)
Pagepublic void notifyUpdate(@NotNull
@NotNull InventoryContents contents)
PagePage.provider()'s InventoryProvider.update(InventoryContents) method with the given contents.notifyUpdate in interface Pagecontents - the contents to update.public <T extends PageEvent> void accept(@NotNull T event)
Page@NotNull public @NotNull InventoryProvider provider()
Page@NotNull public @NotNull Page provider(@NotNull @NotNull InventoryProvider provider)
Page@NotNull public @NotNull SmartInventory inventory()
Pagepublic long tick()
Page@NotNull public @NotNull Page tick(long tick)
Pagepublic long startDelay()
PagestartDelay in interface Page@NotNull public @NotNull Page startDelay(long startDelay)
PagestartDelay in interface PagestartDelay - the start delay to set.this, for chained calls.public boolean async()
Page@NotNull public @NotNull Page async(boolean async)
Pagepublic boolean tickEnable()
PagetickEnable in interface Pagetrue if the task enable.@NotNull public @NotNull Page tickEnable(boolean tickEnable)
PagetickEnable in interface PagetickEnable - the tick enable to set.this, for chained calls.public int row()
Page@NotNull public @NotNull Page row(int row)
Pagepublic int column()
Page@NotNull public @NotNull Page column(int column)
Page@NotNull public @NotNull String title()
Page@NotNull public @NotNull Page title(@NotNull @NotNull String title)
Page@NotNull public @NotNull Optional<Page> parent()
Pagethis.@NotNull public @NotNull Page parent(@NotNull @NotNull Page parent)
Page@NotNull public @NotNull Page id(@NotNull @NotNull String id)
Page@NotNull public @NotNull String id()
Pagepublic boolean canClose(@NotNull
@NotNull CloseEvent event)
Page@NotNull public @NotNull Page canClose(@NotNull @NotNull Predicate<CloseEvent> predicate)
Page@NotNull
public @NotNull org.bukkit.inventory.Inventory open(@NotNull
@NotNull org.bukkit.entity.Player player,
int page,
@NotNull
@NotNull Map<String,Object> properties)
PageCopyright © 2021. All rights reserved.