Class PlayerIsWearingOutfitCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerIsWearingOutfitCondition
- All Implemented Interfaces:
ChatCondition,PreTransitionCondition
@Dev(category=OUTFIT,
label="Outfit?")
public class PlayerIsWearingOutfitCondition
extends Object
implements ChatCondition
Does the player wear (at least a part of) the specified outfit?
- Author:
- jackrabbit
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerIsWearingOutfitCondition(Outfit outfit) Creates a new PlayerIsWearingOutfitConditionPlayerIsWearingOutfitCondition(String outfit) Creates a new PlayerIsWearingOutfitCondition. -
Method Summary
-
Constructor Details
-
PlayerIsWearingOutfitCondition
Creates a new PlayerIsWearingOutfitCondition- Parameters:
outfit- an outfit to be checked if it is worn by the player
-
PlayerIsWearingOutfitCondition
Creates a new PlayerIsWearingOutfitCondition.- Parameters:
outfit- String outfit representation.
-
-
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 saidnpc- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
toString
-
hashCode
public int hashCode() -
equals
-