Level

abstract class Level : Iterable<LevelObject>

Represents a LevelZ level.

Inheritors

Properties

Link copied to clipboard
abstract val blocks: Set<LevelObject>

The blocks in the level.

Link copied to clipboard
abstract val coordinates: Set<Coordinate>

The coordinates in the level.

Link copied to clipboard
abstract val dimension: Dimension

The dimension of the level.

Link copied to clipboard

Gets an immutable copy of the raw headers for this level, excluding the dimension.

Link copied to clipboard
abstract val spawn: Coordinate

The spawnpoint for the level.

Functions

Link copied to clipboard
fun Level.export(includeHeaders: Boolean = true, includeData: Boolean = true, lineSeparator: String = ""): String

Exports this Level to a String.

Link copied to clipboard

Gets an immutable copy of the raw headers for this level.

Link copied to clipboard
open operator override fun iterator(): Iterator<LevelObject>
Link copied to clipboard

Maps all the given coordinates to LevelObjects with the given block.