Class DropItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.DropItemAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item-")
public class DropItemAction
extends Object
implements ChatAction
Drops the specified item.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDropItemAction(String itemName) Creates a new DropItemAction.DropItemAction(String itemName, int amount) Creates a new DropItemAction. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatActionstatic ChatActionbooleanvoidfire(Player player, Sentence sentence, EventRaiser npc) does some action after a transition.inthashCode()toString()
-
Constructor Details
-
DropItemAction
Creates a new DropItemAction.- Parameters:
itemName- name of item
-
DropItemAction
Creates a new DropItemAction.- Parameters:
itemName- name of itemamount- for StackableItems
-
-
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
-
dropItem
-
dropItem
-