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
ConstructorDescriptionEnableFeatureAction(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 (null
means disabled, "" means enabled without value)
-
-
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
-
toString
-
hashCode
public int hashCode() -
equals
-