Class PlayerHasInfostringItemWithHimCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerHasInfostringItemWithHimCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=ITEMS_OWNED,
label="Item?")
public class PlayerHasInfostringItemWithHimCondition
extends Object
implements ChatCondition
Does the player carry the specified item with the specified infostring?
- See Also:
DropInfostringItemAction
-
Constructor Summary
ConstructorDescriptionPlayerHasInfostringItemWithHimCondition(String itemName, String infostring)
Creates a new PlayerHasInfostringItemWithHimCondition. -
Method Summary
-
Constructor Details
-
PlayerHasInfostringItemWithHimCondition
Creates a new PlayerHasInfostringItemWithHimCondition.- Parameters:
itemName
- name of iteminfostring
- infostring to check
-
-
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 saidentity
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-