Class AddItemToCollectionAction
java.lang.Object
games.stendhal.server.entity.npc.action.AddItemToCollectionAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
Adds an item to a player's quest slot string
- Author:
- AntumDeluge
-
Constructor Summary
ConstructorDescriptionAddItemToCollectionAction(String quest, int index, String item, int quantity)
Creates a new StartItemsCollectionWithLimitsActionAddItemToCollectionAction(String quest, String item, int quantity)
Creates a new AddItemToCollectionAction -
Method Summary
-
Constructor Details
-
AddItemToCollectionAction
Creates a new AddItemToCollectionAction- Parameters:
quest
- Quest slot nameitem
- Item namequantity
- Item quantity
-
AddItemToCollectionAction
Creates a new StartItemsCollectionWithLimitsAction- Parameters:
quest
- Quest slot nameindex
- index of sub stateitem
- Item namequantity
- Item quantity
-
-
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 saidnpc
- the NPC doing the transition
-
hashCode
public int hashCode() -
equals
-