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
Modifier and TypeFieldDescriptionprotected Function<MenuClickHandler,
Boolean> protected Consumer<PageOpenCallback>
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getIcons()
getOpen()
int
number()
boolean
onClick
(MenuClickHandler handler) Handles a click action for a specific viewer identified by its UUID.void
setClickHandler
(Function<MenuClickHandler, Boolean> clickHandler) void
setColumn
(int menuRows, int startingRow, int endingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified column.void
setColumn
(int menuRows, int startingRow, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified column.void
setColumn
(int menuRows, int column, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified column.void
setOpen
(Consumer<PageOpenCallback> open) void
setRow
(int row, int startingColumn, int endingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified row.void
setRow
(int row, int startingColumn, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to the specified row.void
setRow
(int row, IconBuilder iconBuilder) Sets the specifiedIconBuilder
to 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
-