Interface Inventory.Builder
- All Superinterfaces:
AbstractBuilder<Inventory>,Builder<Inventory,,Inventory.Builder> ResettableBuilder<Inventory,Inventory.Builder>
- All Known Subinterfaces:
Inventory.Builder.BuildingStep
- Enclosing interface:
Inventory
A builder for free-form Inventories.
To build inventories that can be viewed by a player use ViewableInventory.Builder
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe building step.static interfaceThe end Step. -
Method Summary
Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
Method Details
-
slots
Adds one or more slots.- Parameters:
amount- the amount of slots to add- Returns:
- the building step
-
grid
Adds a grid of slots.- Parameters:
sizeX- the horizontal sizesizeY- the vertical size- Returns:
- the building step
-
inventory
Adds an existing inventory.- Parameters:
inventory- the inventory to add.- Returns:
- the building step
-