public final class TileTranslator extends Object
Tile
and ConfigurableTile
.
All tiles and their IDs are displayed in the picture below, taken from the interface document 1.1.
Modifier and Type | Method and Description |
---|---|
static ConfigurableTile |
convertToConfigurableTile(int tileId)
Converts a tileID to the correlating configurable tile object.
|
static ConfigurableTile |
convertToConfigurableTile(Tile tile)
Converts a tile object to the correlating configurable tile object.
|
static Tile |
convertToTile(ConfigurableTile configurableTile)
Converts a configurable tile object to the correlating tile object.
|
static Tile |
convertToTile(int tileId)
Converts a tileID object to the correlating tile object.
|
static HashMap<Tile,ConfigurableTile> |
getAllTiles() |
public static HashMap<Tile,ConfigurableTile> getAllTiles()
public static ConfigurableTile convertToConfigurableTile(Tile tile)
tile
- the tile to be convertedpublic static ConfigurableTile convertToConfigurableTile(int tileId)
tileId
- the tileID to be convertedpublic static Tile convertToTile(ConfigurableTile configurableTile) throws IOException
configurableTile
- the configurable tile to be convertedIOException
- implementations may, but are not required to, throw this exception if the entry has been removed from the backing mappublic static Tile convertToTile(int tileId)
tileId
- the tileID to be convertedCopyright © 2017 smarTen. All rights reserved.