Class OrderedSlotsLayout
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.layout.OrderedSlotsLayout
- All Implemented Interfaces:
Layout
Explicit-order
Layout backing Layout.ofSlots(int...): the i-th given index is
the i-th fill position.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOrderedSlotsLayout(int... slots) Creates a layout that fills slots in exactly the given order. -
Method Summary
-
Constructor Details
-
OrderedSlotsLayout
public OrderedSlotsLayout(int... slots) Creates a layout that fills slots in exactly the given order.- Parameters:
slots- the slot indices in fill order; each must be within 0-53 and unique- Throws:
IllegalArgumentException- if an index is negative,>= 54or duplicated
-
-
Method Details