Class DropRecordedItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.DropRecordedItemAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item-")
public class DropRecordedItemAction
extends Object
implements ChatAction
Drops the specified item.
-
Constructor Summary
ConstructorDescriptionDropRecordedItemAction(String questname)
Creates a new DropRecordedItemAction.DropRecordedItemAction(String questname, int index)
Creates a new DropRecordedItemAction. -
Method Summary
-
Constructor Details
-
DropRecordedItemAction
Creates a new DropRecordedItemAction.- Parameters:
questname
- name of quest to get the item and quantity from
-
DropRecordedItemAction
Creates a new DropRecordedItemAction.- Parameters:
questname
- name of quest to get the item and quantity fromindex
- index of sub state
-
-
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
-