Class GridPaginationLayout
java.lang.Object
com.kamikazejam.kamicommon.menu.api.struct.paginated.layout.GridPaginationLayout
- All Implemented Interfaces:
PaginationLayout
Represents a layout for a
PaginatedMenu where the available slots for page icons are defined
as the grid between two positions (PositionIconSlot)-
Constructor Summary
ConstructorsConstructorDescriptionGridPaginationLayout(@NotNull PositionIconSlot a, @NotNull PositionIconSlot b, @NotNull IconSlot prevIconSlot, @NotNull IconSlot nextIconSlot) -
Method Summary
Modifier and TypeMethodDescription@NotNull PaginationLayoutcopy()@NotNull IconSlotgetNextIconSlot(@NotNull MenuSize size) Get the slot that the next icon (if needed) will be placed into.
If this slot is invalid (outside the menu), the icon will not be placed.@NotNull IconSlotgetPrevIconSlot(@NotNull MenuSize size) Get the slot that the previous icon (if needed) will be placed into.
If this slot is invalid (outside the menu), the icon will not be placed.@NotNull Collection<Integer> Get the slots of the menu that are used for the pages.voidupdate(@NotNull PositionIconSlot a, @NotNull PositionIconSlot b)
-
Constructor Details
-
Method Details
-
copy
- Specified by:
copyin interfacePaginationLayout