Class PaginationMenu
java.lang.Object
tfagaming.projects.minecraft.homestead.gui.PaginationMenu
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic class -
Method Summary
Modifier and TypeMethodDescriptionaddActionButton(int index, org.bukkit.inventory.ItemStack item, BiConsumer<org.bukkit.entity.Player, org.bukkit.event.inventory.InventoryClickEvent> callback) static PaginationMenu.Builderbuilder(int pathTitle, int size) static PaginationMenu.Buildervoiddestroy()intvoidonInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) voidonInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event) voidopen(org.bukkit.entity.Player player) replaceSlot(int index, org.bukkit.inventory.ItemStack newItem)
-
Method Details
-
builder
-
builder
-
addActionButton
public PaginationMenu addActionButton(int index, org.bukkit.inventory.ItemStack item, BiConsumer<org.bukkit.entity.Player, org.bukkit.event.inventory.InventoryClickEvent> callback) -
replaceSlot
-
setItems
-
open
public void open(org.bukkit.entity.Player player) -
destroy
public void destroy() -
getTotalPages
public int getTotalPages() -
onInventoryClick
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) -
onInventoryClose
public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
-