lihzahrd.tiles
- class lihzahrd.tiles.Block(type_: BlockType, shape: Shape = Shape.NORMAL, frame: FrameImportantData | None = None, paint: int | None = None, is_active: bool = True, is_illuminant: bool = False, is_echo: bool = False)
A block that has been placed in the world.
- frame: FrameImportantData | None
The framedata of the block, if present.
- class lihzahrd.tiles.FrameImportantData(frame_x, frame_y)
Frame data of FrameImportant blocks.
Some blocks share the same type and texture of other blocks (ex: banners), so they store some texture data inside the save file.
- class lihzahrd.tiles.Liquid(type_: LiquidType, volume: int = 255)
A liquid present in a tile.
- type: LiquidType
The type of liquid present in the tile.
- class lihzahrd.tiles.Shape(*values)
The shape of a block, given to it with an hammer.
The directions refer to the missing slope corner.
- BOTTOM_LEFT_SLOPE = 5
- BOTTOM_RIGHT_SLOPE = 4
- HALF_TILE = 1
- NORMAL = 0
- TOP_LEFT_SLOPE = 3
- TOP_RIGHT_SLOPE = 2
- classmethod from_flags(flags2)
- class lihzahrd.tiles.Tile(block: Block | None = None, wall: Wall | None = None, liquid: Liquid | None = None, wiring: Wiring | None = None, extra: Chest | Sign | WeighedPressurePlate | TileEntity | None = None)
A tile, composed by a block, a wall, a liquid and wires.
- extra: Chest | Sign | WeighedPressurePlate | TileEntity | None
A reference to the extra data of this tile, such as Chest or Sign data.
- class lihzahrd.tiles.TileMatrix
A huge matrix containing the tiles of a whole world.
- property size: Coordinates
Return the size of the matrix as a pair of coordinates.
- class lihzahrd.tiles.Wall(type_: WallType, paint: int | None = None, is_illuminant: bool = False, is_echo: bool = False)
A wall that has been placed in the world.