Package dev.plex.menu.pagination
Class PageableMenu<T>
java.lang.Object
dev.plex.menu.pagination.PageableMenu<T>
- Direct Known Subclasses:
MaterialMenu
,PunishedPlayerMenu
,PunishmentMenu
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.bukkit.inventory.ItemStack
private int
private boolean
private final org.bukkit.inventory.Inventory
private final net.kyori.adventure.text.Component
static final org.bukkit.inventory.ItemStack
private ConditionalQuadConsumer
<org.bukkit.inventory.InventoryView, org.bukkit.inventory.Inventory, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack> protected final Map
<Integer, PageableMenu.Page> static final org.bukkit.inventory.ItemStack
private final AbstractMenu.Rows
-
Constructor Summary
ConstructorDescriptionPageableMenu
(String name, AbstractMenu.Rows rows) PageableMenu
(net.kyori.adventure.text.Component name, AbstractMenu.Rows rows) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
list()
void
onClick
(ConditionalQuadConsumer<org.bukkit.inventory.InventoryView, org.bukkit.inventory.Inventory, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack> onClick) void
open
(org.bukkit.entity.Player player) void
open
(org.bukkit.entity.Player player, int pageNum) protected abstract org.bukkit.inventory.ItemStack
-
Field Details
-
NEXT
public static final org.bukkit.inventory.ItemStack NEXT -
PREVIOUS
public static final org.bukkit.inventory.ItemStack PREVIOUS -
CLOSE
public static final org.bukkit.inventory.ItemStack CLOSE -
pages
-
name
private final net.kyori.adventure.text.Component name -
rows
-
inventory
private final org.bukkit.inventory.Inventory inventory -
currentPage
private int currentPage -
initialized
private boolean initialized -
onClick
private ConditionalQuadConsumer<org.bukkit.inventory.InventoryView,org.bukkit.inventory.Inventory, onClickorg.bukkit.entity.Player, org.bukkit.inventory.ItemStack>
-
-
Constructor Details
-
Method Details
-
init
protected void init() -
toItem
-
list
-
open
public void open(org.bukkit.entity.Player player) -
open
public void open(org.bukkit.entity.Player player, int pageNum) -
onClick
public void onClick(ConditionalQuadConsumer<org.bukkit.inventory.InventoryView, org.bukkit.inventory.Inventory, org.bukkit.entity.Player, org.bukkit.inventory.ItemStack> onClick)
-