Class Menu

java.lang.Object
net.tnemc.menu.core.Menu

public class Menu extends Object
Menu
Since:
1.5.0.0
Author:
creatorfromhell
  • Field Details

  • Constructor Details

    • Menu

      public Menu()
  • Method Details

    • onClick

      public boolean onClick(MenuClickHandler handler)
      Handles a click action for a specific viewer identified by its UUID.
      Parameters:
      handler - The MenuClickHandler for the click.
      Returns:
      true if the click action is blocked, indicating that it should be prevented, false if the click action is allowed to proceed.
    • onOpen

      public void onOpen(MenuPlayer player, int page)
    • onClose

      public void onClose(MenuPlayer player)
    • maxSlot

      public int maxSlot()
    • addPage

      public void addPage(Page page)
    • getPages

      public Map<Integer,Page> getPages()
    • isBottom

      public boolean isBottom()
    • setBottom

      public void setBottom(boolean bottom)
    • isNonIcon

      public boolean isNonIcon()
    • setNonIcon

      public void setNonIcon(boolean nonIcon)
    • getOpen

      public Consumer<MenuOpenCallback> getOpen()
    • setOpen

      public void setOpen(Consumer<MenuOpenCallback> open)
    • getClose

      public Consumer<MenuCloseCallback> getClose()
    • setClose

      public void setClose(Consumer<MenuCloseCallback> close)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getRows

      public int getRows()
    • setRows

      public void setRows(int rows)