Class DropInfostringItemAction

java.lang.Object
games.stendhal.server.entity.npc.action.DropInfostringItemAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=ITEMS_OWNED, label="Item-") public class DropInfostringItemAction extends Object implements ChatAction
Drops the specified item with the specified infostring
See Also:
PlayerHasInfostringItemWithHimCondition
  • Constructor Details

    • DropInfostringItemAction

      public DropInfostringItemAction(String itemName, String infostring)
      Creates a new DropInfostringItemAction.
      Parameters:
      itemName - name of item
      infostring - infostring of the dropped item
    • DropInfostringItemAction

      @Dev public DropInfostringItemAction(String itemName, @Dev(defaultValue="1") int amount, String infostring)
      Creates a new DropInfostringItemAction.
      Parameters:
      itemName - name of item
      amount - amount of item
      infostring - infostring of the dropped item
  • Method Details