Interface ItemBuilderFactory


  • @NonNullByDefault
    public interface ItemBuilderFactory
    Creates a new ItemBuilder which is based on all available ItemFactorys.
    Author:
    Henning Treu - Initial contribution
    • Method Detail

      • newItemBuilder

        ItemBuilder newItemBuilder​(Item item)
        Create a new ItemBuilder, which is initialized by the given item.
        Parameters:
        item - the template to initialize the builder with
        Returns:
        an ItemBuilder instance
      • newItemBuilder

        ItemBuilder newItemBuilder​(String itemType,
                                   String itemName)
        Create a new ItemBuilder, which is initialized by the given item.
        Parameters:
        itemType - the item type to create
        itemName - the name of the item to create
        Returns:
        an ItemBuilder instance