Class RegisterEventAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.RegisterEventAction
-
public class RegisterEventAction extends Action
This action can be used to register events. When a event is not registered it may not be send.
-
-
Constructor Summary
Constructors Constructor Description RegisterEventAction(Event.EventType type)Create a RegisterEventAction with a event to register.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Name of the action in the json package.booleanisLimited()Returns true if the action is limited in challenge mode, by the action cap.java.lang.ObjectserializeData()Serializes the data of the Action.
-
-
-
Constructor Detail
-
RegisterEventAction
public RegisterEventAction(Event.EventType type)
Create a RegisterEventAction with a event to register.- Parameters:
type- Event to listen to
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:ActionName of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:ActionSerializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeDatain classAction- Returns:
- JSONObject or String
-
-