content
The content of the gui, to be displayed on the pages.
C
- The content type.Gui
with pages.
Only in very rare circumstances should this class be used directly.
Instead, use the static builder or factory functions from the PagedGui
interface,
such as PagedGui.items()
, PagedGui.guis()
or, PagedGui.inventories()
to create a new PagedGui
.
Gui.Builder<G extends Gui,S extends Gui.Builder<G,S>>
PagedGui.Builder<C>
AbstractPagedGui(int width,
int height,
boolean infinitePages,
int... contentListSlots)
AbstractPagedGui
.AbstractPagedGui(int width,
int height,
boolean infinitePages,
Structure structure)
AbstractPagedGui
.void
addPageChangeHandler(@NotNull BiConsumer<Integer,Integer> pageChangeHandler)
int[]
PagedGui
.int
PagedGui
as an index.int
PagedGui
has.@Nullable List<BiConsumer<Integer,Integer>>
void
goBack()
void
boolean
PagedGui
.boolean
boolean
void
removePageChangeHandler(@NotNull BiConsumer<Integer,Integer> pageChangeHandler)
void
setContent(@Nullable List<C> content)
PagedGui
for all pages.void
setPage(int page)
PagedGui
.void
setPageChangeHandlers(@Nullable List<@NotNull BiConsumer<Integer,Integer>> handlers)
protected void
update()
addItems, addParent, addSlotElements, applyStructure, cancelAnimation, closeForAllViewers, fill, fill, fillBorders, fillColumn, fillRectangle, fillRectangle, fillRectangle, fillRectangle, fillRow, findAllCurrentViewers, findAllWindows, getAllInventories, getAllInventorySlots, getBackground, getHeight, getItem, getItem, getParents, getSize, getSlotElement, getSlotElement, getSlotElements, getWidth, handleClick, handleInvDoubleClick, handleInvDrop, handleInvItemShift, handleInvLeftClick, handleInvMiddleClick, handleInvNumberKey, handleInvOffHandKey, handleInvRightClick, handleInvSlotElementClick, handleItemDrag, handleItemShift, handleSlotElementUpdate, hasSlotElement, hasSlotElement, isFrozen, isIgnoreObscuredInventorySlots, playAnimation, putIntoFirstInventory, remove, remove, removeParent, setBackground, setFrozen, setIgnoreObscuredInventorySlots, setItem, setItem, setSlotElement, setSlotElement, updateControlItems
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addItems, addSlotElements, applyStructure, cancelAnimation, closeForAllViewers, fill, fill, fillBorders, fillColumn, fillRectangle, fillRectangle, fillRectangle, fillRectangle, fillRow, findAllCurrentViewers, findAllWindows, getBackground, getHeight, getItem, getItem, getSize, getSlotElement, getSlotElement, getSlotElements, getWidth, hasSlotElement, hasSlotElement, isFrozen, isIgnoreObscuredInventorySlots, playAnimation, remove, remove, setBackground, setFrozen, setIgnoreObscuredInventorySlots, setItem, setItem, setSlotElement, setSlotElement
AbstractPagedGui
.width
- The width of the gui.height
- The height of the gui.infinitePages
- Whether the gui has infinite pages.contentListSlots
- The slots to be used for pages.AbstractPagedGui
.width
- The width of the gui.height
- The height of the gui.infinitePages
- Whether the gui has infinite pages.structure
- The structure of the gui.PagedGui
PagedGui
PagedGui
PagedGui
.PagedGui
hasNextPage
in interface PagedGui<C>
PagedGui
hasPreviousPage
in interface PagedGui<C>
PagedGui
PagedGui
for all pages.setContent
in interface PagedGui<C>
content
- The content to set.PagedGui
PagedGui
has.getPageAmount
in interface PagedGui<C>
PagedGui
has.PagedGui
PagedGui
as an index.getCurrentPage
in interface PagedGui<C>
PagedGui
as an index.PagedGui
PagedGui
.hasInfinitePages
in interface PagedGui<C>
PagedGui
.PagedGui
PagedGui
.getContentListSlots
in interface PagedGui<C>
PagedGui
.PagedGui
addPageChangeHandler
in interface PagedGui<C>
pageChangeHandler
- The handler to register.PagedGui
removePageChangeHandler
in interface PagedGui<C>
pageChangeHandler
- The handler to unregister.PagedGui
setPageChangeHandlers
in interface PagedGui<C>
handlers
- The new page change handlers.PagedGui
getPageChangeHandlers
in interface PagedGui<C>