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:
PlayerHasItemWithHimCondition
  • Constructor Details

    • DropItemAction

      public DropItemAction(String itemName)
      Creates a new DropItemAction.
      Parameters:
      itemName - name of item
    • DropItemAction

      @Dev public DropItemAction(String itemName, @Dev(defaultValue="1") int amount)
      Creates a new DropItemAction.
      Parameters:
      itemName - name of item
      amount - for StackableItems
  • Method Details