Interface ItemCollectorSetters
- All Known Implementing Classes:
ItemCollectorData
public interface ItemCollectorSetters
Allows setting attributes for an
ItemCollector
.-
Method Summary
Modifier and TypeMethodDescriptionSets the message to describe an item to collect.Sets the name of an item to collect.pieces(int count)
Sets the number of required instances for an item to collect.
-
Method Details
-
item
Sets the name of an item to collect.- Parameters:
itemName
- an item name- Returns:
- this object to allow method call chaining
-
pieces
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
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
-