Interface ViewableInventory.Builder
-
- All Superinterfaces:
Buildable.Builder<Inventory>
,Builder<Inventory,ViewableInventory.Builder>
,ResettableBuilder<Inventory,ViewableInventory.Builder>
- All Known Subinterfaces:
ViewableInventory.Builder.EndStep
- Enclosing interface:
- ViewableInventory
public static interface ViewableInventory.Builder extends Builder<Inventory,ViewableInventory.Builder>
A builder for inventories conforming to a ContainerType
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ViewableInventory.Builder.BuildingStep
The building step.static interface
ViewableInventory.Builder.DummyStep
static interface
ViewableInventory.Builder.EndStep
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ViewableInventory.Builder.BuildingStep
type(Supplier<? extends ContainerType> supplier)
Specifies the type of inventory you want to build.ViewableInventory.Builder.BuildingStep
type(ContainerType type)
Specifies the type of inventory you want to build.-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
-
-
-
Method Detail
-
type
ViewableInventory.Builder.BuildingStep type(ContainerType type)
Specifies the type of inventory you want to build.You must define all slots of the given type.
- Parameters:
type
- The ContainerType- Returns:
- The building step.
-
type
default ViewableInventory.Builder.BuildingStep type(Supplier<? extends ContainerType> supplier)
Specifies the type of inventory you want to build.You must define all slots of the given type.
- Parameters:
supplier
- The ContainerType supplier- Returns:
- The building step.
-
-