Class ListProducedItemsOfClassAction
java.lang.Object
games.stendhal.server.entity.npc.action.ListProducedItemsOfClassAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=ITEMS_PRODUCER,
label="List")
public class ListProducedItemsOfClassAction
extends Object
implements ChatAction
Lists all items produced, which are of the given item class, as part of a message
- Author:
- kymara
-
Constructor Summary
ConstructorsConstructorDescriptionListProducedItemsOfClassAction(String clazz, String message) Creates a new ListProducedItemsOfClassActionListProducedItemsOfClassAction(String clazz, String message, String... extras) Creates a new ListProducedItemsOfClassAction -
Method Summary
-
Constructor Details
-
ListProducedItemsOfClassAction
Creates a new ListProducedItemsOfClassAction- Parameters:
clazz- Item class to check.message- Message with substitution [items] or [#items] for the list of items.
-
ListProducedItemsOfClassAction
Creates a new ListProducedItemsOfClassAction- Parameters:
clazz- Item class to check.message- Message with substitution [items] or [#items] for the list of items.extras- Additional items to be listed not included in production registry.
-
-
Method Details
-
fire
Description copied from interface:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidraiser- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-