lihzahrd.tiles

class lihzahrd.tiles.LiquidType

All possible types of liquids.

HONEY = 3
LAVA = 2
NO_LIQUID = 0
WATER = 1
classmethod from_flags(flags1)
class lihzahrd.tiles.RLEEncoding

How the RLE compression is encoded.

DOUBLE_BYTE = 2

The read data refers to 256-4800 tiles (2 bytes).

NO_COMPRESSION = 0

The read data refers to a single tile.

SINGLE_BYTE = 1

The read data refers to 2-255 tiles (1 byte).

classmethod from_flags(flags1)
class lihzahrd.tiles.Shape

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.Wiring(red: bool = False, green: bool = False, blue: bool = False, yellow: bool = False, actuator: bool = False)

Wiring data for a certain tile.

actuator

If there’s an Actuator in the tile.

blue

If there’s a blue Wire in the tile.

classmethod from_flags(flags2=None, flags3=None)
green

If there’s a green Wire in the tile.

red

If there’s a red Wire in the tile.

yellow

If there’s a yellow Wire in the tile.

class lihzahrd.tiles.BlockType

All possible block types.

Data from https://github.com/tModLoader/tModLoader/wiki/Vanilla-Tile-IDs.

ACTIVE_STONE_BLOCK = 130
ADAMANTITE = 111
ADAMANTITE_BEAM = 150
ADAMANTITE_FORGE = 133
ALCHEMY_TABLE = 355
ALPHABET_STATUES = 337
AMBER_BUNNY_CAGE = 605
AMBER_GEMSPARK = 268
AMBER_GEMSPARK_OFF = 261
AMBER_SQUIRREL_CAGE = 612
AMBER_STONE_BLOCK = 566
AMETHYST = 67
AMETHYST_BUNNY_CAGE = 599
AMETHYST_GEMSPARK = 262
AMETHYST_GEMSPARK_OFF = 255
AMETHYST_SQUIRREL_CAGE = 606
AMMO_BOX = 287
ANNOUNCEMENT_BOX = 425
ANTI_PORTAL_BLOCK = 496
ANTLION_LARVA = 485
ANVILS = 16
ARGON_MOSS = 539
ARGON_MOSS_BRICK = 540
ARROW_SIGN = 510
ASH = 57
ASPHALT = 198
AUTOHAMMER = 247
BAMBOO = 571
BANNERS = 91
BAST_STATUE = 506
BATHTUBS = 90
BEACH_PILES = 324
BEDS = 79
BEE_HIVE = 444
BENCHES = 89
BEWITCHING_TABLE = 354
BIRD_CAGE = 279
BLACK_DRAGONFLY_JAR = 521
BLACK_SCORPION_CAGE = 297
BLENDOMATIC = 217
BLOOD_MOON_MONOLITH = 480
BLOOMING_HERBS = 84
BLUE_DRAGONFLY_JAR = 522
BLUE_DUNGEON_BRICK = 41
BLUE_DYNASTY_SHINGLES = 313
BLUE_FAIRY_JAR = 570
BLUE_JAY = 280
BLUE_JELLYFISH_BOWL = 316
BLUE_MOSS = 182
BLUE_MOSS_BRICK = 515
BLUE_STARRY_BLOCK = 508
BONE_BLOCK = 194
BONE_WELDER = 300
BOOKCASES = 101
BOOKS = 50
BOREAL_BEAM = 574
BOREAL_WOOD = 321
BOTTLES = 13
BOULDER = 138
BOULDER_STATUE = 531
BOWLS = 103
BREAKABLE_ICE = 162
BROWN_MOSS = 180
BROWN_MOSS_BRICK = 513
BUBBLE = 379
BUBBLEGUM_BLOCK = 249
BUBBLE_MACHINE = 244
BUNNY_CAGE = 275
CACTUS = 80
CACTUS_BLOCK = 188
CAGE_BUGGY = 392
CAGE_ENCHANTED_NIGHTCRAWLER = 391
CAGE_GRUBBY = 393
CAGE_SLUGGY = 394
CAMPFIRE = 215
CANDELABRAS = 100
CANDLES = 33
CANDY_CANE_BLOCK = 145
CANNON = 209
CARDINAL_CAGE = 281
CATTAIL = 519
CHAIN = 214
CHAIRS = 15
CHANDELIERS = 34
CHIMNEY = 406
CHIMNEY_SMOKE = 351
CHINESE_LANTERNS = 95
CHLOROPHYTE = 211
CHLOROPHYTE_BRICK = 346
CHRISTMAS_TREE = 171
CLAY_BLOCK = 40
CLAY_POT = 78
CLOSED_DOOR = 10
CLOUD = 189
COBALT = 107
COBALT_BRICK = 121
COBWEB = 51
COG = 272
CONFETTI = 328
CONFETTI_BLACK = 329
CONTAINERS = 21
CONTAINERS2 = 467
CONVEYOR_BELT_LEFT = 421
CONVEYOR_BELT_RIGHT = 422
COOKING_POTS = 96
COPPER = 7
COPPER_BRICK = 47
COPPER_COIN_PILE = 330
COPPER_PLATING = 284
CORAL = 81
CORALSTONE = 315
CORRUPT_GRASS = 23
CORRUPT_HARDENED_SAND = 398
CORRUPT_ICE = 163
CORRUPT_PLANTS = 24
CORRUPT_SANDSTONE = 400
CORRUPT_THORNS = 32
CRACKED_BLUE_DUNGEON_BRICK = 481
CRACKED_GREEN_DUNGEON_BRICK = 482
CRACKED_PINK_DUNGEON_BRICK = 483
CRIMSAND = 234
CRIMSON_HARDENED_SAND = 399
CRIMSON_SANDSTONE = 401
CRIMSON_VINES = 205
CRIMSTONE = 203
CRIMSTONE_BRICK = 478
CRIMTANE = 204
CRIMTANE_BRICK = 347
CRIMTANE_THORNS = 352
CRISPY_HONEY_BLOCK = 230
CRYSTALS = 129
CRYSTAL_BALL = 125
CRYSTAL_BLOCK = 385
DECAY_CHAMBER = 499
DEFENDERS_FORGE = 463
DEMONITE = 22
DEMONITE_BRICK = 140
DEMON_ALTAR = 26
DESERT_FOSSIL = 404
DETONATOR = 411
DIAMOND = 68
DIAMOND_BUNNY_CAGE = 604
DIAMOND_GEMSPARK = 267
DIAMOND_GEMSPARK_OFF = 260
DIAMOND_SQUIRREL_CAGE = 611
DIRT = 0
DISCO_BALL = 126
DISPLAY_DOLL = 470
DJINN_LAMP = 462
DRESSERS = 88
DRUM_SET = 486
DUCK_CAGE = 278
DYE_PLANTS = 227
DYE_VAT = 228
DYNASTY_WOOD = 311
EBONSAND = 112
EBONSTONE = 25
EBONSTONE_BRICK = 152
EBONWOOD = 157
ECHO_BLOCK = 541
ELDER_CRYSTAL_STAND = 466
EMERALD = 65
EMERALD_BUNNY_CAGE = 602
EMERALD_GEMSPARK = 265
EMERALD_GEMSPARK_OFF = 258
EMERALD_SQUIRREL_CAGE = 609
EXPLOSIVES = 141
EXPOSED_GEMS = 178
EXTRACTINATOR = 219
FAKE_CONTAINERS = 441
FAKE_CONTAINERS2 = 468
FALLEN_LOG = 488
FIREFLYINA_BOTTLE = 270
FIREPLACE = 405
FIREWORK = 216
FIREWORKS_BOX = 335
FIREWORK_FOUNTAIN = 338
FISHING_CRATE = 376
FISH_BOWL = 282
FLESH_BLOCK = 195
FLESH_CLONING_VAT = 301
FLESH_GRASS = 199
FLESH_ICE = 200
FLESH_WEEDS = 201
FOG_MACHINE = 565
FOSSIL_ORE = 407
FROG_CAGE = 298
FROZEN_SLIME_BLOCK = 197
FURNACES = 17
GARDEN_GNOME = 567
GEM_LOCKS = 440
GEM_SAPLINGS = 590
GEYSER_TRAP = 443
GLASS = 54
GLASS_KILN = 302
GLOWING_SNAIL_CAGE = 286
GOLD = 8
GOLD_BIRD_CAGE = 358
GOLD_BRICK = 45
GOLD_BUNNY_CAGE = 359
GOLD_BUTTERFLY_CAGE = 360
GOLD_COIN_PILE = 332
GOLD_DRAGONFLY_JAR = 527
GOLD_FISH_BOWL = 505
GOLD_FROG_CAGE = 361
GOLD_GRASSHOPPER_CAGE = 362
GOLD_LADYBUG_CAGE = 544
GOLD_MOUSE_CAGE = 363
GOLD_SEAHORSE_CAGE = 559
GOLD_STARRY_BLOCK = 507
GOLD_WATER_STRIDER_CAGE = 556
GOLD_WORM_CAGE = 364
GOLF_CUP = 476
GOLF_CUP_FLAG = 493
GOLF_GRASS_HALLOWED = 492
GOLF_TEE = 494
GOLF_TROPHIES = 560
GRANDFATHER_CLOCKS = 104
GRANITE = 368
GRANITE_BLOCK = 369
GRANITE_COLUMN = 576
GRASS = 2
GRASSHOPPER_CAGE = 339
GRATE = 546
GRATE_CLOSED = 557
GRAY_BRICK = 38
GRAY_STUCCO = 156
GREBE_CAGE = 553
GREEN_CANDY_CANE_BLOCK = 146
GREEN_DRAGONFLY_JAR = 523
GREEN_DUNGEON_BRICK = 43
GREEN_FAIRY_JAR = 569
GREEN_JELLYFISH_BOWL = 317
GREEN_MOSS = 179
GREEN_MOSS_BRICK = 512
GREEN_STUCCO = 155
HALLOWED_GRASS = 109
HALLOWED_ICE = 164
HALLOWED_PLANTS = 110
HALLOWED_PLANTS2 = 113
HALLOWED_VINES = 115
HALLOW_HARDENED_SAND = 402
HALLOW_SANDSTONE = 403
HANGING_BRAZIER = 592
HANGING_LANTERNS = 42
HARDENED_SAND = 397
HAT_RACK = 475
HAY_BLOCK = 252
HEART = 12
HEAVY_WORK_BENCH = 283
HELLFORGE = 77
HELLSTONE = 58
HELLSTONE_BRICK = 76
HELL_BUTTERFLY_JAR = 580
HIVE = 225
HOLIDAY_LIGHTS = 149
HONEYFALL = 345
HONEY_BLOCK = 229
HONEY_DISPENSER = 308
HONEY_DRIP = 375
ICE_BLOCK = 161
ICE_BRICK = 206
ICE_MACHINE = 306
IMBUING_STATION = 243
IMMATURE_HERBS = 82
INACTIVE_STONE_BLOCK = 131
INLET_PUMP = 142
IRIDESCENT_BRICK = 119
IRON = 6
IRON_BRICK = 472
ITEM_FRAME = 395
JACKOLANTERNS = 35
JULIA_BUTTERFLY_JAR = 295
JUNGLE_GRASS = 60
JUNGLE_PLANTS = 61
JUNGLE_PLANTS2 = 74
JUNGLE_THORNS = 69
JUNGLE_TURTLE_CAGE = 551
JUNGLE_VINES = 62
KEGS = 94
KRYPTON_MOSS = 534
KRYPTON_MOSS_BRICK = 535
LADYBUG_CAGE = 538
LAMPPOSTS = 92
LAMPS = 93
LAND_MINE = 210
LARGE_BAMBOO = 563
LARGE_PILES = 186
LARGE_PILES2 = 187
LARGE_VOLCANO = 594
LARVA = 231
LAVAFALL = 327
LAVAFISH_BOWL = 598
LAVAFLY_IN_A_BOTTLE = 581
LAVA_DRIP = 374
LAVA_LAMP = 390
LAVA_MOSS = 381
LAVA_MOS_SBRICK = 517
LAWN_FLAMINGO = 545
LEAD = 167
LEAD_BRICK = 473
LEAF_BLOCK = 192
LESION_BLOCK = 474
LEVER = 132
LIFE_FRUIT = 236
LIGHTNING_BUGINA_BOTTLE = 271
LIHZAHRD_ALTAR = 237
LIHZAHRD_BRICK = 226
LIHZAHRD_FURNACE = 303
LILY_PAD = 518
LIVING_CURSED_FIRE = 340
LIVING_DEMON_FIRE = 341
LIVING_FIRE = 336
LIVING_FROST_FIRE = 342
LIVING_ICHOR = 343
LIVING_LOOM = 304
LIVING_MAHOGANY = 383
LIVING_MAHOGANY_LEAVES = 384
LIVING_ULTRABRIGHT_FIRE = 344
LIVING_WOOD = 191
LOGIC_GATE = 420
LOGIC_GATE_LAMP = 419
LOGIC_SENSOR = 423
LONG_MOSS = 184
LOOM = 86
LUNAR_BLOCK_NEBULA = 417
LUNAR_BLOCK_SOLAR = 415
LUNAR_BLOCK_STARDUST = 418
LUNAR_BLOCK_VORTEX = 416
LUNAR_BRICK = 409
LUNAR_CRAFTING_STATION = 412
LUNAR_MONOLITH = 410
LUNAR_ORE = 408
MAGGOT_CAGE = 532
MAGICAL_ICE_BLOCK = 127
MAGMA_SNAIL_CAGE = 582
MALLARD_DUCK_CAGE = 277
MANNEQUIN = 128
MARBLE = 367
MARBLE_BLOCK = 357
MARBLE_COLUMN = 561
MARTIAN_CONDUIT_PLATING = 350
MASTER_TROPHY_BASE = 617
MATURE_HERBS = 83
MEAT_GRINDER = 218
METAL_BARS = 239
METEORITE = 37
METEORITE_BRICK = 370
MINECART_TRACK = 314
MINI_VOLCANO = 593
MONARCH_BUTTERFLY_JAR = 288
MOUSE_CAGE = 299
MOWED_GOLF_GRASS = 477
MUD = 59
MUDSTONE = 120
MUSHROOMVINES = 528
MUSHROOM_BEAM = 578
MUSHROOM_BLOCK = 190
MUSHROOM_GRASS = 70
MUSHROOM_PLANTS = 71
MUSHROOM_STATUE = 349
MUSHROOM_TREES = 72
MUSIC_BOXES = 139
MYSTIC_SNAKE_ROPE = 504
MYTHRIL = 108
MYTHRIL_ANVIL = 134
MYTHRIL_BRICK = 122
NEBULA_BRICK = 502
OASIS_PLANTS = 530
OBSIDIAN = 56
OBSIDIAN_BRICK = 75
OPEN_DOOR = 11
ORANGE_DRAGONFLY_JAR = 524
ORICHALCUM = 222
OUTLET_PUMP = 143
OWL_CAGE = 542
PAINTED_ARROW_SIGN = 511
PAINTING2X3 = 245
PAINTING3X2 = 246
PAINTING3X3 = 240
PAINTING4X3 = 241
PAINTING6X4 = 242
PALLADIUM = 221
PALLADIUM_COLUMN = 248
PALM_TREE = 323
PALM_WOOD = 322
PARTY_BUNDLE_OF_BALLOON_TILE = 456
PARTY_MONOLITH = 455
PARTY_PRESENT = 457
PEACE_CANDLE = 372
PEARLSAND = 116
PEARLSTONE = 117
PEARLSTONE_BRICK = 118
PEARLWOOD = 159
PENGUIN_CAGE = 309
PIANOS = 87
PICNIC_TABLE = 487
PIGGY_BANK = 29
PIGRONATA = 454
PINE_TREE = 170
PINK_DUNGEON_BRICK = 44
PINK_FAIRY_JAR = 568
PINK_JELLYFISH_BOWL = 318
PINK_SLIME_BLOCK = 371
PIN_WHEEL = 489
PIXEL_BOX = 445
PLANTERA_BULB = 238
PLANTER_BOX = 380
PLANTS = 3
PLANTS2 = 73
PLANT_DETRITUS = 233
PLASMA_LAMP = 564
PLATE = 520
PLATFORMS = 19
PLATINUM = 169
PLATINUM_BRICK = 177
PLATINUM_CANDELABRA = 173
PLATINUM_CANDLE = 174
PLATINUM_COIN_PILE = 333
POTS = 28
POTS_SUSPENDED = 591
POTTEDLAVAPLANTS = 613
POTTED_EMBER_TENDRILS = 614
POTTED_PLANTS_1 = 547
POTTED_PLANTS_2 = 548
PRESENTS = 36
PRESSURE_PLATES = 135
PRISMATIC_LACEWING_JAR = 620
PROJECTILE_PRESSURE_PAD = 442
PUMPKINS = 254
PUMPKIN_BLOCK = 251
PUPFISH_BOWL = 543
PURPLE_EMPEROR_BUTTERFLY_JAR = 289
PURPLE_MOSS = 183
PURPLE_MOSS_BRICK = 516
RAINBOW_BRICK = 160
RAIN_CLOUD = 196
RAT_CAGE = 533
RED_ADMIRAL_BUTTERFLY_JAR = 290
RED_BRICK = 39
RED_DRAGONFLY_JAR = 525
RED_DYNASTY_SHINGLES = 312
RED_MOSS = 181
RED_MOSS_BRICK = 514
RED_STUCCO = 153
RICH_MAHOGANY = 158
RICH_MAHOGANY_BEAM = 575
ROCK_GOLEM_HEAD = 579
ROLLING_CACTUS = 484
ROPE = 213
RUBY = 64
RUBY_BUNNY_CAGE = 603
RUBY_GEMSPARK = 266
RUBY_GEMSPARK_OFF = 259
RUBY_SQUIRREL_CAGE = 610
SAFES = 97
SAND = 53
SANDCASTLES = 552
SANDSTONE = 396
SANDSTONE_BRICK = 151
SANDSTONE_COLUMN = 577
SAND_DRIP = 461
SAND_FALL_BLOCK = 458
SAND_STONE_SLAB = 274
SAPLINGS = 20
SAPPHIRE = 63
SAPPHIRE_BUNNY_CAGE = 601
SAPPHIRE_GEMSPARK = 264
SAPPHIRE_GEMSPARK_OFF = 257
SAPPHIRE_SQUIRREL_CAGE = 608
SAWMILL = 106
SCORPION_CAGE = 296
SEAGULL_CAGE = 554
SEAHORSE_CAGE = 558
SEAWEED = 549
SEAWEED_PLANTER = 320
SEA_OATS = 529
SHADEWOOD = 208
SHADOW_ORBS = 31
SHARPENING_STATION = 377
SHELL_PILE = 495
SHIP_IN_ABOTTLE = 319
SHROOMITE_PLATING = 348
SIGNS = 55
SILK_ROPE = 365
SILLY_BALLOON_GREEN = 448
SILLY_BALLOON_MACHINE = 452
SILLY_BALLOON_PINK = 446
SILLY_BALLOON_PURPLE = 447
SILLY_BALLOON_TILE = 453
SILLY_STREAMER_BLUE = 449
SILLY_STREAMER_GREEN = 450
SILLY_STREAMER_PINK = 451
SILT = 123
SILVER = 9
SILVER_BRICK = 46
SILVER_COIN_PILE = 331
SINKS = 172
SKULL_LANTERNS = 98
SKY_MILL = 305
SLICE_OF_CAKE = 621
SLIME_BLOCK = 193
SLUSH = 224
SMALL_PILES = 185
SMOOTH_SANDSTONE = 479
SNAIL_CAGE = 285
SNOWBALL_LAUNCHER = 212
SNOW_BLOCK = 147
SNOW_BRICK = 148
SNOW_CLOUD = 460
SNOW_FALL_BLOCK = 459
SOLAR_BRICK = 500
SOLIDIFIER = 220
SOUL_BOTTLES = 572
SPIDER_NEST_BLOCK = 498
SPIKES = 48
SPOOKY_WOOD = 253
SQUIRREL_CAGE = 276
SQUIRREL_GOLD_CAGE = 414
SQUIRREL_ORANGE_CAGE = 413
STALACTITE = 165
STARDUST_BRICK = 503
STATUES = 105
STEAMPUNK_BOILER = 307
STONE = 1
STONE_ACCENT_SLAB = 618
STONE_SLAB = 273
SULPHUR_BUTTERFLY_JAR = 292
SUNDIAL = 356
SUNFLOWER = 27
SUNPLATE = 202
SWITCHES = 136
TABLES = 14
TABLES2 = 469
TALL_GATE_CLOSED = 388
TALL_GATE_OPEN = 389
TARGET_DUMMY = 378
TATTERED_WOOD_SIGN = 573
TEAM_BLOCK_BLUE = 431
TEAM_BLOCK_BLUE_PLATFORM = 436
TEAM_BLOCK_GREEN = 430
TEAM_BLOCK_GREEN_PLATFORM = 435
TEAM_BLOCK_PINK = 433
TEAM_BLOCK_PINK_PLATFORM = 438
TEAM_BLOCK_RED = 426
TEAM_BLOCK_RED_PLATFORM = 427
TEAM_BLOCK_WHITE = 434
TEAM_BLOCK_WHITE_PLATFORM = 439
TEAM_BLOCK_YELLOW = 432
TEAM_BLOCK_YELLOW_PLATFORM = 437
TEAPOT = 622
TELEPORTATION_PYLON = 597
TELEPORTER = 235
THRONES = 102
TIMERS = 144
TIN = 166
TINKERERS_WORKBENCH = 114
TIN_BRICK = 175
TIN_PLATING = 325
TITANIUM = 223
TITANSTONE = 250
TOILETS = 497
TOMBSTONES = 85
TOPAZ = 66
TOPAZ_BUNNY_CAGE = 600
TOPAZ_GEMSPARK = 263
TOPAZ_GEMSPARK_OFF = 256
TOPAZ_SQUIRREL_CAGE = 607
TORCHES = 4
TRAPDOOR_CLOSED = 387
TRAPDOOR_OPEN = 386
TRAPS = 137
TRASH_CAN = 99
TREES = 5
TREE_AMBER = 589
TREE_AMETHYST = 584
TREE_DIAMOND = 588
TREE_EMERALD = 586
TREE_NYMPH_BUTTERFLY_JAR = 293
TREE_RUBY = 587
TREE_SAPPHIRE = 585
TREE_TOPAZ = 583
TRUFFLE_WORM_CAGE = 619
TUNGSTEN = 168
TUNGSTEN_BRICK = 176
TURTLE_CAGE = 550
ULYSSES_BUTTERFLY_JAR = 291
VANITY_TREE_SAKURA = 596
VANITY_TREE_SAKURA_SAPLINGS = 595
VANITY_TREE_WILLOW_SAPLINGS = 615
VANITY_TREE_YELLOW_WILLOW = 616
VINES = 52
VINE_FLOWERS = 382
VINE_ROPE = 353
VOID_MONOLITH = 509
VOID_VAULT = 491
VORTEX_BRICK = 501
WAR_TABLE = 464
WAR_TABLE_BANNER = 465
WATERFALL = 326
WATER_CANDLE = 49
WATER_DRIP = 373
WATER_FOUNTAIN = 207
WATER_STRIDER_CAGE = 555
WEAPONS_RACK = 334
WEAPON_RACK_2 = 471
WEATHER_VANE = 490
WEB_ROPE = 366
WEIGHTED_PRESSURE_PLATE = 428
WIRE_BULB = 429
WIRE_PIPE = 424
WOMANNEQUIN = 269
WOODEN_BEAM = 124
WOODEN_SPIKES = 232
WOOD_BLOCK = 30
WORK_BENCHES = 18
WORM_CAGE = 310
XENON_MOSS = 536
XENON_MOSS_BRICK = 537
YELLOW_DRAGONFLY_JAR = 526
YELLOW_STUCCO = 154
ZEBRA_SWALLOWTAIL_BUTTERFLY_JAR = 294
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.

frame_x
frame_y
class lihzahrd.tiles.WallType

All possible wall types.

Data from https://github.com/tModLoader/tModLoader/wiki/Vanilla-Wall-IDs.

ADAMANTITE_BEAM = 32
AMBER_GEMSPARK = 153
AMBER_GEMSPARK_OFF = 157
AMETHYST_GEMSPARK = 154
AMETHYST_GEMSPARK_OFF = 158
AMETHYST_UNSAFE = 48
ARCANE_RUNES = 144
BAMBOO_BLOCK_WALL = 312
BAMBOO_FENCE = 315
BLUEGREEN_WALLPAPER = 124
BLUE_DUNGEON = 17
BLUE_DUNGEON_SLAB = 100
BLUE_DUNGEON_SLAB_UNSAFE = 94
BLUE_DUNGEON_TILE = 101
BLUE_DUNGEON_TILE_UNSAFE = 95
BLUE_DUNGEON_UNSAFE = 7
BLUE_DYNASTY = 143
BLUE_STAINED_GLASS = 90
BLUE_STARRY_GLASS_WALL = 243
BONE = 75
BOREAL_WOOD = 149
BOREAL_WOOD_FENCE = 150
BUBBLEGUM_BLOCK = 110
BUBBLE_WALLPAPER = 133
CACTUS = 72
CANDY_CANE = 29
CANDY_CANE_WALLPAPER = 118
CAVE2UNSAFE = 55
CAVE3UNSAFE = 56
CAVE4UNSAFE = 57
CAVE5UNSAFE = 58
CAVE6UNSAFE = 59
CAVE7UNSAFE = 61
CAVE8UNSAFE = 185
CAVE_UNSAFE = 54
CAVE_WALL = 170
CAVE_WALL2 = 171
CHLOROPHYTE_BRICK = 173
CHRISTMAS_TREE_WALLPAPER = 116
CLOUD = 73
COBALT_BRICK = 25
COG_WALL = 225
CONFETTI = 168
CONFETTI_BLACK = 169
COPPER_BRICK = 12
COPPER_PIPE_WALLPAPER = 134
COPPER_PLATING = 146
CORRUPTION_UNSAFE1 = 188
CORRUPTION_UNSAFE2 = 189
CORRUPTION_UNSAFE3 = 190
CORRUPTION_UNSAFE4 = 191
CORRUPT_GRASS_UNSAFE = 69
CORRUPT_HARDENED_SAND = 217
CORRUPT_SANDSTONE = 220
CRIMSON_GRASS_UNSAFE = 81
CRIMSON_HARDENED_SAND = 218
CRIMSON_SANDSTONE = 221
CRIMSON_UNSAFE1 = 192
CRIMSON_UNSAFE2 = 193
CRIMSON_UNSAFE3 = 194
CRIMSON_UNSAFE4 = 195
CRIMSTONE_BRICK = 234
CRIMSTONE_UNSAFE = 83
CRIMTANE_BRICK = 174
CRYSTAL = 186
DEMONITE_BRICK = 33
DESERT_FOSSIL = 223
DIAMOND_GEMSPARK = 155
DIAMOND_GEMSPARK_OFF = 159
DIAMOND_UNSAFE = 53
DIRT = 16
DIRT_UNSAFE = 2
DIRT_UNSAFE1 = 196
DIRT_UNSAFE2 = 197
DIRT_UNSAFE3 = 198
DIRT_UNSAFE4 = 199
DISC_WALL = 82
DUCKY_WALLPAPER = 135
EBONSTONE_BRICK = 35
EBONSTONE_UNSAFE = 3
EBONWOOD = 41
EBONWOOD_FENCE = 138
ECTO_AMBER_STONE_WALL = 314
ECTO_AMETHYST = 250
ECTO_CAVE1 = 256
ECTO_CAVE2 = 257
ECTO_CAVE3 = 258
ECTO_CAVE4 = 259
ECTO_CAVE5 = 260
ECTO_CAVE6 = 261
ECTO_CAVE7 = 262
ECTO_CAVE8 = 274
ECTO_CAVEWALL1 = 270
ECTO_CAVEWALL2 = 271
ECTO_CORRUPTION1 = 276
ECTO_CORRUPTION2 = 277
ECTO_CORRUPTION3 = 278
ECTO_CORRUPTION4 = 279
ECTO_CORRUPT_GRASS = 264
ECTO_CORRUPT_HARDENED_SAND = 305
ECTO_CORRUPT_SANDSTONE = 308
ECTO_CRIMSON1 = 280
ECTO_CRIMSON2 = 281
ECTO_CRIMSON3 = 282
ECTO_CRIMSON4 = 283
ECTO_CRIMSON_GRASS = 268
ECTO_CRIMSON_HARDENED_SAND = 306
ECTO_CRIMSON_SANDSTONE = 309
ECTO_CRIMSTONE = 269
ECTO_DESERT_FOSSIL = 311
ECTO_DIAMOND = 255
ECTO_DIRT1 = 284
ECTO_DIRT2 = 285
ECTO_DIRT3 = 286
ECTO_DIRT4 = 287
ECTO_EBONSTONE = 246
ECTO_EMERALD = 253
ECTO_GRANITE_UNUSED = 273
ECTO_HALLOW1 = 288
ECTO_HALLOW2 = 289
ECTO_HALLOW3 = 290
ECTO_HALLOW4 = 291
ECTO_HALLOWED_GRASS = 265
ECTO_HALLOW_HARDENED_SAND = 307
ECTO_HALLOW_SANDSTONE = 310
ECTO_HARDENED_SAND = 304
ECTO_ICE = 266
ECTO_JUNGLE1 = 292
ECTO_JUNGLE2 = 293
ECTO_JUNGLE3 = 294
ECTO_JUNGLE4 = 295
ECTO_LAVA1 = 296
ECTO_LAVA2 = 297
ECTO_LAVA3 = 298
ECTO_LAVA4 = 299
ECTO_MARBLE_UNUSED = 272
ECTO_MUDWALL = 247
ECTO_OBSIDIAN_BACK = 267
ECTO_PEARLSTONE = 248
ECTO_ROCKS1 = 300
ECTO_ROCKS2 = 301
ECTO_ROCKS3 = 302
ECTO_ROCKS4 = 303
ECTO_RUBY = 254
ECTO_SANDSTONE = 275
ECTO_SAPPHIRE = 252
ECTO_SNOWWALL = 249
ECTO_SPIDER = 263
ECTO_TOPAZ = 251
EMERALD_GEMSPARK = 156
EMERALD_GEMSPARK_OFF = 160
EMERALD_UNSAFE = 51
FANCY_GRAY_WALLPAPER = 126
FESTIVE_WALLPAPER = 119
FLESH = 77
FLOWER = 68
FLOWER_UNSAFE = 65
GLASS = 21
GOLD_BRICK = 10
GOLD_STARRY_GLASS_WALL = 242
GRANITE = 184
GRANITE_BLOCK = 181
GRANITE_UNSAFE = 180
GRASS = 66
GRASS_UNSAFE = 63
GRAY = 39
GRAY_BRICK = 5
GREEN_CANDY_CANE = 30
GREEN_DUNGEON = 18
GREEN_DUNGEON_SLAB = 104
GREEN_DUNGEON_SLAB_UNSAFE = 98
GREEN_DUNGEON_TILE = 105
GREEN_DUNGEON_TILE_UNSAFE = 99
GREEN_DUNGEON_UNSAFE = 8
GREEN_STAINED_GLASS = 91
GREEN_STUCCO = 38
GRINCH_FINGER_WALLPAPER = 125
HALLOWED_GRASS_UNSAFE = 70
HALLOW_HARDENED_SAND = 219
HALLOW_SANDSTONE = 222
HALLOW_UNSAFE1 = 200
HALLOW_UNSAFE2 = 201
HALLOW_UNSAFE3 = 202
HALLOW_UNSAFE4 = 203
HARDENED_SAND = 216
HAY = 114
HELLSTONE_BRICK = 177
HELLSTONE_BRICK_UNSAFE = 13
HIVE = 108
HIVE_UNSAFE = 86
HONEYFALL = 172
ICE_BRICK = 84
ICE_FLOE_WALLPAPER = 127
ICE_UNSAFE = 71
IRIDESCENT_BRICK = 23
IRON_BRICK = 231
IRON_FENCE = 145
JUNGLE = 67
JUNGLE_UNSAFE = 64
JUNGLE_UNSAFE1 = 204
JUNGLE_UNSAFE2 = 205
JUNGLE_UNSAFE3 = 206
JUNGLE_UNSAFE4 = 207
KRAMPUS_HORN_WALLPAPER = 123
LARGE_BAMBOO_BLOCK_WALL = 313
LAVAFALL = 137
LAVA_UNSAFE1 = 208
LAVA_UNSAFE2 = 209
LAVA_UNSAFE3 = 210
LAVA_UNSAFE4 = 211
LEAD_BRICK = 232
LESION_BLOCK = 233
LIHZAHRD_BRICK = 112
LIHZAHRD_BRICK_UNSAFE = 87
LIVING_LEAF = 60
LIVING_WOOD = 78
LIVING_WOOD_UNSAFE = 244
LUNAR_BRICK_WALL = 224
MARBLE = 183
MARBLE_BLOCK = 179
MARBLE_UNSAFE = 178
MARTIAN_CONDUIT = 176
METAL_FENCE = 107
METEORITE_BRICK = 182
MUDSTONE_BRICK = 24
MUD_UNSAFE = 15
MUSHROOM = 74
MUSHROOM_UNSAFE = 80
MUSIC_WALLPAPER = 128
MYTHRIL_BRICK = 26
NEBULA_BRICK = 239
OBSIDIAN_BACK_UNSAFE = 79
OBSIDIAN_BRICK = 20
OBSIDIAN_BRICK_UNSAFE = 14
ORANGE_STAINED_GLASS = 241
ORNAMENT_WALLPAPER = 117
PALLADIUM_COLUMN = 109
PALM_WOOD = 151
PALM_WOOD_FENCE = 152
PEARLSTONE_BRICK = 22
PEARLSTONE_BRICK_UNSAFE = 28
PEARLWOOD = 43
PEARLWOOD_FENCE = 140
PINK_DUNGEON = 19
PINK_DUNGEON_SLAB = 102
PINK_DUNGEON_SLAB_UNSAFE = 96
PINK_DUNGEON_TILE = 103
PINK_DUNGEON_TILE_UNSAFE = 97
PINK_DUNGEON_UNSAFE = 9
PLANKED = 27
PLATINUM_BRICK = 47
PUMPKIN = 113
PURPLE_RAIN_WALLPAPER = 129
PURPLE_STAINED_GLASS = 88
RAINBOW_BRICK = 44
RAINBOW_STAINED_GLASS = 93
RAINBOW_WALLPAPER = 130
RED_BRICK = 6
RED_STAINED_GLASS = 92
RED_STUCCO = 36
RICH_MAHOGANY_FENCE = 139
RICH_MAOGANY = 42
ROCKS_UNSAFE1 = 212
ROCKS_UNSAFE2 = 213
ROCKS_UNSAFE3 = 214
ROCKS_UNSAFE4 = 215
RUBY_GEMSPARK = 164
RUBY_GEMSPARK_OFF = 161
RUBY_UNSAFE = 52
SAIL = 148
SANDSTONE = 187
SANDSTONE_BRICK = 34
SAND_FALL = 226
SAPPHIRE_GEMSPARK = 165
SAPPHIRE_GEMSPARK_OFF = 162
SAPPHIRE_UNSAFE = 50
SHADEWOOD = 85
SHADEWOOD_FENCE = 141
SHROOMITE_PLATING = 175
SILLY_BALLOON_GREEN_WALL = 230
SILLY_BALLOON_PINK_WALL = 228
SILLY_BALLOON_PURPLE_WALL = 229
SILVER_BRICK = 11
SLIME = 76
SMOOTH_SANDSTONE = 235
SNOWFLAKE_WALLPAPER = 122
SNOW_BRICK = 31
SNOW_FALL = 227
SNOW_WALL_UNSAFE = 40
SOLAR_BRICK = 237
SPARKLE_STONE_WALLPAPER = 131
SPIDER = 236
SPIDER_UNSAFE = 62
SPOOKY_WOOD = 115
SQUIGGLES_WALLPAPER = 121
STARDUST_BRICK = 240
STARLIT_HEAVEN_WALLPAPER = 132
STARS_WALLPAPER = 120
STONE = 1
STONE_SLAB = 147
TIN_BRICK = 45
TIN_PLATING = 167
TITANSTONE_BLOCK = 111
TOPAZ_GEMSPARK = 166
TOPAZ_GEMSPARK_OFF = 163
TOPAZ_UNSAFE = 49
TUNGSTEN_BRICK = 46
VORTEX_BRICK = 238
WATERFALL = 136
WHITE_DYNASTY = 142
WOOD = 4
WOODEN_FENCE = 106
WROUGHT_IRON_FENCE = 245
YELLOW_STAINED_GLASS = 89
YELLOW_STUCCO = 37
class lihzahrd.tiles.Block(type_: lihzahrd.tiles.blocktype.BlockType, shape: lihzahrd.tiles.shape.Shape = <Shape.NORMAL: 0>, frame: Optional[lihzahrd.tiles.frameimportantdata.FrameImportantData] = None, paint: Optional[int] = None, is_active: bool = True)

A block that has been placed in the world.

frame

The framedata of the block, if present.

is_active

If the block is solid or can be passed through because of an Actuator.

paint

The paint color of a block.

shape

The shape of the block, is changed with an hammer.

type

The type of the block (dirt, stone, …).

class lihzahrd.tiles.Wall(type_: lihzahrd.tiles.walltype.WallType, paint: Optional[int] = None)

A wall that has been placed in the world.

paint
type
class lihzahrd.tiles.Liquid(type_: lihzahrd.tiles.liquidtype.LiquidType, volume: int = 255)

A liquid present in a tile.

type

The type of liquid present in the tile.

volume

The volume of liquid present in the tile.

0 means the tile has no liquid, while 255 means the tile is full of liquid.

Values over 255 aren’t supported.

class lihzahrd.tiles.Tile(block: Optional[lihzahrd.tiles.block.Block] = None, wall: Optional[lihzahrd.tiles.wall.Wall] = None, liquid: Optional[lihzahrd.tiles.liquid.Liquid] = None, wiring: Optional[lihzahrd.tiles.wiring.Wiring] = None, extra: Union[lihzahrd.chests.chest.Chest, lihzahrd.signs.sign.Sign, lihzahrd.pressureplates.weighedpressureplate.WeighedPressurePlate, lihzahrd.tileentities.tileentity.TileEntity, None] = None)

A tile, composed by a block, a wall, a liquid and wires.

block
extra

A reference to the extra data of this tile, such as Chest or Sign data.

liquid
wall
wiring
class lihzahrd.tiles.TileMatrix

A huge matrix containing the tiles of a whole world.

add_column(column: List[lihzahrd.tiles.tile.Tile])

Add a new column to the matrix.

property size

Return the size of the matrix as a pair of coordinates.