Class ConfigureChameleonTileAction
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.actions.Action
-
- page.codeberg.terratactician_expandoria.bots.actions.ConfigureChameleonTileAction
-
public class ConfigureChameleonTileAction extends Action
ConfigureChameleon is an Action to change the type and text of a placed chameleon tile. Will only work in creative mode.
-
-
Field Summary
Fields Modifier and Type Field Description CubeCoordinatecoordCoordinate of tile to be configured.java.lang.StringtextText to display above this tile.Tile.TileTypetypeTile variant the chameleon tile should morph into.
-
Constructor Summary
Constructors Constructor Description ConfigureChameleonTileAction(CubeCoordinate coord, Tile.TileType type, java.lang.String text)Generates an action that reconfigures an chameleon tile.
-
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.
-
-
-
Field Detail
-
coord
public CubeCoordinate coord
Coordinate of tile to be configured.
-
type
public Tile.TileType type
Tile variant the chameleon tile should morph into.
-
text
public java.lang.String text
Text to display above this tile.
-
-
Constructor Detail
-
ConfigureChameleonTileAction
public ConfigureChameleonTileAction(CubeCoordinate coord, Tile.TileType type, java.lang.String text) throws java.lang.IllegalArgumentException
Generates an action that reconfigures an chameleon tile.- Parameters:
coord- Coordinate of the targeted Markettype- Name of the tile type to render this chameleon tile with.text- Text to display over the chameleon tile.- Throws:
java.lang.IllegalArgumentException- will be thrown the limits from the other args are exceeded.
-
-
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
-
-