Interface Inventory.Builder
-
- All Superinterfaces:
AbstractBuilder<Inventory>,Buildable.Builder<Inventory>,Builder<Inventory,Inventory.Builder>,ResettableBuilder<Inventory,Inventory.Builder>
- All Known Subinterfaces:
Inventory.Builder.BuildingStep
- Enclosing interface:
- Inventory
public static interface Inventory.Builder extends Builder<Inventory,Inventory.Builder>
A builder for free-form Inventories.To build inventories that can be viewed by a player use
ViewableInventory.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInventory.Builder.BuildingStepThe building step.static interfaceInventory.Builder.EndStepThe end Step.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Inventory.Builder.BuildingStepgrid(int sizeX, int sizeY)Adds a grid of slots.Inventory.Builder.BuildingStepinventory(Inventory inventory)Adds an existing inventory.Inventory.Builder.BuildingStepslots(int amount)Adds one or more slots.-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
-
-
-
Method Detail
-
slots
Inventory.Builder.BuildingStep slots(int amount)
Adds one or more slots.- Parameters:
amount- the amount of slots to add- Returns:
- the building step
-
grid
Inventory.Builder.BuildingStep grid(int sizeX, int sizeY)
Adds a grid of slots.- Parameters:
sizeX- the horizontal sizesizeY- the vertical size- Returns:
- the building step
-
inventory
Inventory.Builder.BuildingStep inventory(Inventory inventory)
Adds an existing inventory.- Parameters:
inventory- the inventory to add.- Returns:
- the building step
-
-