Class IncreaseItemExchangeAction

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

public class IncreaseItemExchangeAction extends Object implements ChatAction
Action to adjust amount of an item that is looted, produced, harvested, bought, sold, etc.
  • Constructor Details

    • IncreaseItemExchangeAction

      public IncreaseItemExchangeAction(String exchangeType, String itemName, int quantity)
      Creates an action to increase count of an exchanged item by specified amount.
      Parameters:
      exchangeType - String represented the type of transaction. Must be one of: obtain, loot, produce, harvest, mine, sell, or buy.
      itemName - Name of the item.
      quantity - The amount to increase by.
    • IncreaseItemExchangeAction

      public IncreaseItemExchangeAction(String exchangeType, String itemName)
      Creates an action to increase count of an exchanged item by 1.
      Parameters:
      exchangeType - String represented the type of transaction. Must be one of: obtain, loot, produce, harvest, mine, sell, or buy.
      itemName - Name of the item.
  • Method Details