Class DropInfostringItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.DropInfostringItemAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item-")
public class DropInfostringItemAction
extends Object
implements ChatAction
Drops the specified item with the specified infostring
- See Also:
PlayerHasInfostringItemWithHimCondition
-
Constructor Summary
ConstructorDescriptionDropInfostringItemAction(String itemName, int amount, String infostring)
Creates a new DropInfostringItemAction.DropInfostringItemAction(String itemName, String infostring)
Creates a new DropInfostringItemAction. -
Method Summary
-
Constructor Details
-
DropInfostringItemAction
Creates a new DropInfostringItemAction.- Parameters:
itemName
- name of iteminfostring
- infostring of the dropped item
-
DropInfostringItemAction
@Dev public DropInfostringItemAction(String itemName, @Dev(defaultValue="1") int amount, String infostring)Creates a new DropInfostringItemAction.- Parameters:
itemName
- name of itemamount
- amount of iteminfostring
- infostring of the dropped item
-
-
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
-