Class EquipItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.EquipItemAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item+")
public class EquipItemAction
extends Object
implements ChatAction
Equips the specified item.
-
Constructor Summary
ConstructorDescriptionEquipItemAction(String itemName)
Creates a new EquipItemAction.EquipItemAction(String itemName, int amount)
Creates a new EquipItemAction.EquipItemAction(String itemName, int amount, boolean bind)
Creates a new EquipItemAction. -
Method Summary
-
Constructor Details
-
EquipItemAction
Creates a new EquipItemAction.- Parameters:
itemName
- name of item
-
EquipItemAction
Creates a new EquipItemAction.- Parameters:
itemName
- name of itemamount
- for StackableItems
-
EquipItemAction
Creates a new EquipItemAction.- Parameters:
itemName
- name of itemamount
- for StackableItemsbind
- bind to player
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidnpc
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-