Class ConfigureSoundTileAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.ConfigureSoundTileAction
-
public class ConfigureSoundTileAction extends Action
ConfigureSoundTileAction is an Action which can be used to reconfigure Sound tiles. It only works in Creative Mode
-
-
Field Summary
Fields Modifier and Type Field Description float
amplify
Multiplied with output of sound tileCubeCoordinate
coord
Coordinate of tile to be configured.boolean
enabled
Enable sound tile playbackjava.util.List<SoundTile.Wave>
waves
List of configured waves, that are played back by the sound tile
-
Constructor Summary
Constructors Constructor Description ConfigureSoundTileAction(CubeCoordinate coord, java.util.List<SoundTile.Wave> waves, boolean enabled, float amplify)
Generates an action that reconfigures a sound tile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Name of the action in the json package.boolean
isLimited()
Returns true if the action is limited in challenge mode, by the action cap.java.lang.Object
serializeData()
Serializes the data of the Action.
-
-
-
Field Detail
-
coord
public CubeCoordinate coord
Coordinate of tile to be configured.
-
waves
public java.util.List<SoundTile.Wave> waves
List of configured waves, that are played back by the sound tile
-
enabled
public boolean enabled
Enable sound tile playback
-
amplify
public float amplify
Multiplied with output of sound tile
-
-
Constructor Detail
-
ConfigureSoundTileAction
public ConfigureSoundTileAction(CubeCoordinate coord, java.util.List<SoundTile.Wave> waves, boolean enabled, float amplify)
Generates an action that reconfigures a sound tile.- Parameters:
coord
- Coordinate of the targeted Sound tilewaves
- Soundwaves to be played back by the tileenabled
- If the sound tile should produce soundamplify
- Factor which is multiplied with Tile output
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:Action
Name of the action in the json package.
-
serializeData
public java.lang.Object serializeData()
Description copied from class:Action
Serializes the data of the Action. This may returns a JSONObject or String or an other supported datatype.- Specified by:
serializeData
in classAction
- Returns:
- JSONObject or String
-
-