Class PagedMenu<T>

java.lang.Object
wbs.utils.util.menus.WbsMenu
wbs.utils.util.menus.PagedMenu<T>
All Implemented Interfaces:
org.bukkit.event.Listener

public abstract class PagedMenu<T> extends WbsMenu
  • Field Details

    • lastPageNumber

      protected final int lastPageNumber
    • maxRows

      protected final int maxRows
    • maxColumns

      protected final int maxColumns
    • maxSlots

      protected final int maxSlots
    • rowStart

      protected final int rowStart
    • page

      protected final int page
    • pageSlots

      protected final List<PageSlot<? extends T>> pageSlots
  • Constructor Details

    • PagedMenu

      public PagedMenu(WbsPlugin plugin, Collection<T> toDisplay, String title, String id, int rowStart, int maxRows, int minColumn, int maxColumn, int page)
  • Method Details

    • fillNextPageSlots

      protected void fillNextPageSlots()
    • fillPrevPageSlots

      protected void fillPrevPageSlots()
    • getPageChangeSlot

      protected MenuSlot getPageChangeSlot(int page, org.bukkit.Material material, String display)
    • getSlot

      protected abstract PageSlot<? extends T> getSlot(T display)
    • getPage

      protected abstract PagedMenu<? extends T> getPage(int page)