Class 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 tile
      CubeCoordinate coord
      Coordinate of tile to be configured.
      boolean enabled
      Enable sound tile playback
      java.util.List<SoundTile.Wave> waves
      List of configured waves, that are played back by the 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.
      • Methods inherited from class page.codeberg.terratactician_expandoria.bots.actions.Action

        serialize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 tile
        waves - Soundwaves to be played back by the tile
        enabled - If the sound tile should produce sound
        amplify - 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.
        Specified by:
        getName in class Action
        Returns:
        API name of this Action
      • 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 class Action
        Returns:
        JSONObject or String
      • isLimited

        public boolean isLimited()
        Description copied from class: Action
        Returns true if the action is limited in challenge mode, by the action cap.
        Specified by:
        isLimited in class Action
        Returns:
        if is limited