Interface ViewableInventory.Builder.BuildingStep

    • Method Detail

      • dummySlots

        ViewableInventory.Builder.DummyStep dummySlots​(int count,
                                                       int offset)
        Adds dummy-slots to the inventory.
        Parameters:
        count - the amount of slots to add
        offset - the offset for adding the slots
        Returns:
        the dummy building step
      • dummySlots

        ViewableInventory.Builder.DummyStep dummySlots​(int count,
                                                       Vector2i offset)
        Adds dummy-slots to the inventory.
        Parameters:
        count - the amount of slots to add
        offset - the offset for adding the slots
        Returns:
        the dummy building step
      • dummyGrid

        ViewableInventory.Builder.DummyStep dummyGrid​(Vector2i size,
                                                      int offset)
        Adds a grid of dummy-slots to the inventory.
        Parameters:
        size - the size of the grid
        offset - the offset for adding the slots
        Returns:
        the dummy building step
      • slots

        ViewableInventory.Builder.BuildingStep slots​(java.util.List<Slot> source,
                                                     int offset)
        Adds given slots to the inventory.
        Parameters:
        source - the source slots.
        offset - the offset for adding the slots
        Returns:
        the building step
      • grid

        ViewableInventory.Builder.BuildingStep grid​(java.util.List<Slot> source,
                                                    Vector2i size,
                                                    int offset)
        Adds given slots to the inventory in a grid.
        Parameters:
        source - the source slots.
        size - the size if the grid
        offset - the offset for adding the slots.
        Returns:
        the building step
      • grid

        ViewableInventory.Builder.BuildingStep grid​(java.util.List<Slot> source,
                                                    Vector2i size,
                                                    Vector2i offset)
        Adds given slots to the inventory in a grid.
        Parameters:
        source - the source slots.
        size - the size if the grid
        offset - the offset for adding the slots.
        Returns:
        the building step
      • slotsAtIndizes

        ViewableInventory.Builder.BuildingStep slotsAtIndizes​(java.util.List<Slot> source,
                                                              java.util.List<java.lang.Integer> at)
        Adds given slots to the inventory at given indizes.
        Parameters:
        source - the source slots
        at - the indizes
        Returns:
        the building step
      • slotsAtPositions

        ViewableInventory.Builder.BuildingStep slotsAtPositions​(java.util.List<Slot> source,
                                                                java.util.List<Vector2i> at)
        Adds given slots to the inventory at given positions
        Parameters:
        source - the source slots
        at - the indizes
        Returns:
        the building step
      • completeStructure

        ViewableInventory.Builder.EndStep completeStructure()
        Completes the inventory structure.

        If no slots are defined this will create the structure mirroring the vanilla type.

        If some but not all slots are defined undefined slots will be defined using fillDummy()

        Returns:
        the end step