Interface Inventory.Builder

All Superinterfaces:
AbstractBuilder<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

  • Method Details

    • 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 size
      sizeY - the vertical size
      Returns:
      the building step
    • inventory

      Adds an existing inventory.
      Parameters:
      inventory - the inventory to add.
      Returns:
      the building step