Class EquipRandomItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.EquipRandomItemAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item+")
public class EquipRandomItemAction
extends Object
implements ChatAction
Chooses and equips the specified item from a list
-
Constructor Summary
ConstructorDescriptionEquipRandomItemAction(String itemlist)
Creates a new EquipRandomItemAction.EquipRandomItemAction(String itemlist, boolean bind)
Creates a new EquipRandomItemAction.EquipRandomItemAction(Map<String,Integer> items)
Creates a new EquipRandomItemAction.EquipRandomItemAction(Map<String,Integer> items, boolean bind)
Creates a new EquipRandomItemAction. -
Method Summary
-
Constructor Details
-
EquipRandomItemAction
Creates a new EquipRandomItemAction.- Parameters:
items
- items and quantities
-
EquipRandomItemAction
Creates a new EquipRandomItemAction.- Parameters:
items
- items and quantitiesbind
- bind to player
-
EquipRandomItemAction
Creates a new EquipRandomItemAction.- Parameters:
itemlist
- items and quantities as a String item=q1;item2=q2
-
EquipRandomItemAction
Creates a new EquipRandomItemAction.- Parameters:
itemlist
- items and quantities as a String item=q1;item2=q2bind
- 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
-