levelz.block

Classes

Block

Represents a Block in a Level.

LevelObject

Utility Object for representing a Level Block and its Coordinate.

Module Contents

class levelz.block.Block(name: str, properties: dict[str, object] = {})

Represents a Block in a Level.

_name: str = ''
_properties: dict[str, object]
property name
Returns the name of the Block.
property properties
Returns an immutable copy of the properties for the Block.
__str__()

Return str(self).

__eq__(other)

Return self==value.

class levelz.block.LevelObject(block: Block | str, coordinate: levelz.coord.Coordinate | list[int | float])

Utility Object for representing a Level Block and its Coordinate.

_block: Block
_coordinate: levelz.coord.Coordinate
property block
Returns the Block of the LevelObject.
property coordinate
Returns the Coordinate of the LevelObject.
__str__()

Return str(self).

__eq__(other)

Return self==value.