Class PlayerHasRecordedItemWithHimCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerHasRecordedItemWithHimCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=ITEMS_OWNED,
label="Item?")
public class PlayerHasRecordedItemWithHimCondition
extends Object
implements ChatCondition
Does the player carry the specified item?
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerHasRecordedItemWithHimCondition(String questName) Creates a new PlayerHasRecordedItemWithHimCondition.PlayerHasRecordedItemWithHimCondition(String questName, int index) Creates a new PlayerHasRecordedItemWithHimCondition. -
Method Summary
-
Constructor Details
-
PlayerHasRecordedItemWithHimCondition
Creates a new PlayerHasRecordedItemWithHimCondition.- Parameters:
questName- name of quest
-
PlayerHasRecordedItemWithHimCondition
Creates a new PlayerHasRecordedItemWithHimCondition.- Parameters:
questName- name of questindex- index in the quest slot
-
-
Method Details
-
fire
Description copied from interface:PreTransitionConditioncan the transition be done?- Specified by:
firein interfaceChatCondition- Specified by:
firein 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
-