LayeredMap
This class represents a map in a 3-dimensional grid that contains multiple layers. Each layer is a 2-dimensional grid in which each cell has the same y-coordinate. The layers are ordered by their y-coordinate, with the first layer having the lowest y-coordinate and the last layer having the highest y-coordinate.
Since
1.0.0
See also
Functions
Tries to retrieve a cell at the given location. If there is no cell at the location, for example since the location is out of bounds, null is returned. However, as long as the location is within the bounds of the map, this method should never return null.
Creates a list of all cells in the map. The order of the cells is not specified and may vary between different implementations.
Removes the cell at the given location. If there is no cell at the location, null is returned. Otherwise, the removed cell is returned.
Sets the layer at the specified index to the given layer. If there is already a layer at the specified index, it is replaced by the new layer. If the specified index is out of bounds, an exception is thrown. This method will not modify the order of the layers and the height of the map.