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 Summary Link icon

    Modifier and Type
    Method
    Description
    @Nullable Item
    createItem(@Nullable String itemTypeName, String itemName)
    Creates a new Item instance of type itemTypeName and the name itemName
    Returns the list of all supported ItemTypes of this Factory.
  • Method Details Link icon

    • createItem Link icon

      @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 Link icon

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