Interface ItemFactory

  • All Known Implementing Classes:
    CoreItemFactory

    @NonNullByDefault
    public interface ItemFactory
    This Factory creates concrete instances of the known ItemTypes.
    Author:
    Thomas Eichstaedt-Engelen - Initial contribution
    • Method Detail

      • createItem

        @Nullable Item createItem​(@Nullable String itemTypeName,
                                  String itemName)
        Creates a new Item instance of type itemTypeName and the name itemName
        Parameters:
        itemTypeName -
        itemName -
        Returns:
        a new Item of type itemTypeName or null if no matching class is known.
      • getSupportedItemTypes

        String[] getSupportedItemTypes()
        Returns the list of all supported ItemTypes of this Factory.
        Returns:
        the supported ItemTypes