Class DropFirstOwnedItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.DropFirstOwnedItemAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="Item-")
public class DropFirstOwnedItemAction
extends Object
implements ChatAction
Drops the specified item.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDropFirstOwnedItemAction(List<Pair<String, Integer>> itemList) Creates a new DropFirstOwnedItemAction. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatActiondropFirstOwnedItem(List<Pair<String, Integer>> itemList) booleanvoidfire(Player player, Sentence sentence, EventRaiser npc) does some action after a transition.inthashCode()toString()
-
Constructor Details
-
DropFirstOwnedItemAction
Creates a new DropFirstOwnedItemAction.- Parameters:
itemList- List of pairs of items and quantity
-
-
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
-
dropFirstOwnedItem
-