Class PlayerProducedNumberOfItemsCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerProducedNumberOfItemsCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=ITEMS_PRODUCER,
label="Item?")
public class PlayerProducedNumberOfItemsCondition
extends Object
implements ChatCondition
Checks if a player has produced a given number of items
- Author:
- madmetzger
-
Constructor Summary
ConstructorDescriptionPlayerProducedNumberOfItemsCondition(int number, String... items)
Checks if a player has produced a given number of items -
Method Summary
-
Constructor Details
-
PlayerProducedNumberOfItemsCondition
Checks if a player has produced a given number of items- Parameters:
number
- required number of each itemitems
- list of required items
-
-
Method Details
-
fire
Description copied from interface:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidnpc
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
hashCode
public int hashCode() -
equals
-
toString
-