Package net.tnemc.menu.core
Class Page
java.lang.Object
net.tnemc.menu.core.Page
- Direct Known Subclasses:
PlayerInstancePage
Page
- Since:
- 1.5.0.0
- Author:
- creatorfromhell
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<MenuClickHandler,Boolean> protected Consumer<PageOpenCallback>private final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetIcons()getOpen()intnumber()booleanonClick(MenuClickHandler handler) Handles a click action for a specific viewer identified by its UUID.voidsetClickHandler(Function<MenuClickHandler, Boolean> clickHandler) voidsetColumn(int menuRows, int startingRow, int endingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified column.voidsetColumn(int menuRows, int startingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified column.voidsetColumn(int menuRows, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified column.voidsetOpen(Consumer<PageOpenCallback> open) voidsetRow(int row, int startingColumn, int endingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified row.voidsetRow(int row, int startingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified row.voidsetRow(int row, IconBuilder iconBuilder) Sets the specifiedIconBuilderto the specified row.
-
Field Details
-
pageNumber
private final int pageNumber -
icons
-
clickHandler
-
open
-
-
Constructor Details
-
Page
public Page(int pageNumber)
-
-
Method Details
-
number
public int number() -
getIcons
-
getOpen
-
setOpen
-
getClickHandler
-
setClickHandler
-