Class IncreaseItemExchangeAction
java.lang.Object
games.stendhal.server.entity.npc.action.IncreaseItemExchangeAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
Action to adjust amount of an item that is looted, produced, harvested, bought, sold, etc.
-
Constructor Summary
ConstructorDescriptionIncreaseItemExchangeAction(String exchangeType, String itemName)
Creates an action to increase count of an exchanged item by 1.IncreaseItemExchangeAction(String exchangeType, String itemName, int quantity)
Creates an action to increase count of an exchanged item by specified amount. -
Method Summary
-
Constructor Details
-
IncreaseItemExchangeAction
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
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
-
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 saidraiser
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-