Class EnableFeatureAction
java.lang.Object
games.stendhal.server.entity.npc.action.EnableFeatureAction
- All Implemented Interfaces:
ChatAction,PostTransitionAction
@Dev(category=OTHER,
label="Feature+")
public class EnableFeatureAction
extends Object
implements ChatAction
Enables a client side feature.
-
Constructor Summary
ConstructorsConstructorDescriptionEnableFeatureAction(String feature) Creates a new EnableFeatureAction.EnableFeatureAction(String feature, String value) Creates a new EnableFeatureAction. -
Method Summary
-
Constructor Details
-
EnableFeatureAction
Creates a new EnableFeatureAction.- Parameters:
feature- name of feature
-
EnableFeatureAction
Creates a new EnableFeatureAction.- Parameters:
feature- name of featurevalue- value of feature (nullmeans disabled, "" means enabled without value)
-
-
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 saidnpc- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-