Class PageableMenu<T>

java.lang.Object
dev.plex.menu.pagination.PageableMenu<T>
Direct Known Subclasses:
MaterialMenu, PunishedPlayerMenu, PunishmentMenu

public abstract class PageableMenu<T> extends Object
  • 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

      protected final Map<Integer,PageableMenu.Page> pages
    • name

      private final net.kyori.adventure.text.Component name
    • rows

      private final AbstractMenu.Rows 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,org.bukkit.entity.Player,org.bukkit.inventory.ItemStack> onClick
  • Constructor Details

  • Method Details

    • init

      protected void init()
    • toItem

      protected abstract org.bukkit.inventory.ItemStack toItem (T object)
    • list

      protected abstract List<T> 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)