Interface ItemCollectorSetters

All Known Implementing Classes:
ItemCollectorData

public interface ItemCollectorSetters
Allows setting attributes for an ItemCollector.
  • Method Details

    • item

      ItemCollectorSetters item(String itemName)
      Sets the name of an item to collect.
      Parameters:
      itemName - an item name
      Returns:
      this object to allow method call chaining
    • pieces

      ItemCollectorSetters pieces(int count)
      Sets the number of required instances for an item to collect.
      Parameters:
      count - the number of items of the same kind
      Returns:
      this object to allow method call chaining
    • bySaying

      ItemCollectorSetters bySaying(String message)
      Sets the message to describe an item to collect. Should contain a "%s" where the count and name of the item are to be replaced. For example, the message "I still need %s." may appear as "I still need 6 pieces of iron."
      Parameters:
      message - a message to be said by the NPC when talking about the item to collect
      Returns:
      this object to allow method call chaining