Class GridSlotsLayout
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.layout.GridSlotsLayout
- All Implemented Interfaces:
Layout
Grid-parsed
Layout backing Layout.ofGrid(java.lang.String...): ' ' is empty, every
other character is a fill slot ordered by character code point (Unicode value), then occurrence.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGridSlotsLayout(@NotNull String... rows) Parses the given grid rows into an ordered fill sequence. -
Method Summary
-
Constructor Details
-
GridSlotsLayout
Parses the given grid rows into an ordered fill sequence.- Parameters:
rows- the grid rows, each exactlyLayout.ROW_WIDTHcharacters wide- Throws:
IllegalArgumentException- if a row is not exactlyLayout.ROW_WIDTHcharacters wide
-
-
Method Details