Interface ViewableInventory.Builder
- All Superinterfaces:
AbstractBuilder<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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe building step.static interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiontype(Supplier<? extends ContainerType> supplier) Specifies the type of inventory you want to build.type(ContainerType type) Specifies the type of inventory you want to build.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
-
Method Details
-
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
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.
-