Class PlayerHasShieldEquippedCondition
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerHasShieldEquippedCondition
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=ITEMS_OWNED,
label="Item?")
public class PlayerHasShieldEquippedCondition
extends Object
implements ChatCondition
Checks whether the player has a shield equipped
- Author:
- Lumocra
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PlayerHasShieldEquippedCondition
public PlayerHasShieldEquippedCondition()
-
-
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
-