public class PaginatedGUI extends VisualGUI
Constructor and Description |
---|
PaginatedGUI(Plugin plugin,
int size,
String title) |
PaginatedGUI(Plugin plugin,
InventoryType type,
String title) |
Modifier and Type | Method and Description |
---|---|
void |
finalise() |
List<ItemStack> |
getEntries() |
BiConsumer<Player,InventoryClickEvent> |
getEntryConsumer() |
BiConsumer<Player,InventoryClickEvent> |
getPageDown() |
BiConsumer<Player,InventoryClickEvent> |
getPageReset() |
BiConsumer<Player,InventoryClickEvent> |
getPageUp() |
void |
next() |
void |
onClick(InventoryClickEvent event) |
void |
onClose(InventoryCloseEvent event) |
void |
open(Player player) |
void |
prev() |
void |
reset() |
void |
setEntries(Collection<ItemStack> entries) |
void |
setEntries(ItemStack... entries) |
void |
setEntryChar(char c) |
void |
setEntryConsumer(@NotNull BiConsumer<Player,InventoryClickEvent> consumer) |
PaginatedGUI |
setLayout(String[] layout) |
createButton, createTile, createTile, getLayout, getReference, getSize, getSlots, getType, hasListener, isEditable, isOpen, remove, unregister
public PaginatedGUI(Plugin plugin, InventoryType type, String title)
public BiConsumer<Player,InventoryClickEvent> getEntryConsumer()
public void setEntryConsumer(@NotNull @NotNull BiConsumer<Player,InventoryClickEvent> consumer)
public void setEntryChar(char c)
public void setEntries(Collection<ItemStack> entries)
public void setEntries(ItemStack... entries)
public BiConsumer<Player,InventoryClickEvent> getPageUp()
public BiConsumer<Player,InventoryClickEvent> getPageDown()
public PaginatedGUI setLayout(String[] layout)
public BiConsumer<Player,InventoryClickEvent> getPageReset()
public void next()
public void prev()
public void reset()
public void open(Player player)
public void onClick(InventoryClickEvent event)
public void onClose(InventoryCloseEvent event)
Copyright © 2020. All rights reserved.