Class SayRequiredItemAction
java.lang.Object
games.stendhal.server.entity.npc.action.SayRequiredItemAction
- All Implemented Interfaces:
ChatAction
,PostTransitionAction
@Dev(category=ITEMS_OWNED,
label="\"...\"")
public class SayRequiredItemAction
extends Object
implements ChatAction
States the name of the item, with formatting/grammar rules, stored in the quest slot
-
Constructor Summary
ConstructorDescriptionSayRequiredItemAction(String questname, int index, String message)
Creates a new SayRequiredItemAction.SayRequiredItemAction(String questname, String message)
Creates a new SayRequiredItemAction. -
Method Summary
-
Constructor Details
-
SayRequiredItemAction
@Dev public SayRequiredItemAction(String questname, @Dev(defaultValue="1") int index, String message)Creates a new SayRequiredItemAction.- Parameters:
questname
- name of quest-slot to checkindex
- index of sub statemessage
- message with substitution defined for item: [item], [#item], or [the item]
-
SayRequiredItemAction
Creates a new SayRequiredItemAction.- Parameters:
questname
- name of quest-slot to checkmessage
- message with substitution defined for item: [item], [#item], or [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
-