Class DropItemdataItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.DropItemdataItemAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item-")
public class DropItemdataItemAction
extends Object
implements ChatAction
Drops the specified item with the specified itemdata
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDropItemdataItemAction(String itemName, int amount, String itemdata) Creates a new DropItemdataItemAction.DropItemdataItemAction(String itemName, String itemdata) Creates a new DropItemdataItemAction. -
Method Summary
-
Constructor Details
-
DropItemdataItemAction
Creates a new DropItemdataItemAction.- Parameters:
itemName- name of itemitemdata- itemdata of the dropped item
-
DropItemdataItemAction
@Dev public DropItemdataItemAction(String itemName, @Dev(defaultValue="1") int amount, String itemdata) Creates a new DropItemdataItemAction.- Parameters:
itemName- name of itemamount- amount of itemitemdata- itemdata of the dropped item
-
-
Method Details
-
fire
Description copied from interface:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidnpc- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-