1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-11-25 01:24:21 +00:00

Extend BlockType with new blocks

Co-authored-by: Martin George <martydingo@users.noreply.github.com>
This commit is contained in:
Steffo 2023-03-06 00:54:00 +01:00
parent 8baee150fb
commit 958f085bfe

View file

@ -4,7 +4,7 @@ import enum
class BlockType(enum.IntEnum): class BlockType(enum.IntEnum):
"""All possible block types. """All possible block types.
Data from https://github.com/tModLoader/tModLoader/wiki/Vanilla-Tile-IDs.""" Data from https://github.com/tModLoader/tModLoader/wiki/Vanilla-Tile-IDs and https://github.com/TerraMap/windows/blob/master/Data/tiles.xml."""
DIRT = 0 DIRT = 0
STONE = 1 STONE = 1
@ -476,7 +476,6 @@ class BlockType(enum.IntEnum):
CONTAINERS2 = 467 CONTAINERS2 = 467
FAKE_CONTAINERS2 = 468 FAKE_CONTAINERS2 = 468
TABLES2 = 469 TABLES2 = 469
# New 1.4 stuff, adapted from: https://github.com/TerraMap/windows/blob/master/Data/tiles.xml
DISPLAY_DOLL = 470 DISPLAY_DOLL = 470
WEAPON_RACK_2 = 471 WEAPON_RACK_2 = 471
IRON_BRICK = 472 IRON_BRICK = 472
@ -620,7 +619,7 @@ class BlockType(enum.IntEnum):
RUBY_SQUIRREL_CAGE = 610 RUBY_SQUIRREL_CAGE = 610
DIAMOND_SQUIRREL_CAGE = 611 DIAMOND_SQUIRREL_CAGE = 611
AMBER_SQUIRREL_CAGE = 612 AMBER_SQUIRREL_CAGE = 612
POTTEDLAVAPLANTS = 613 POTTED_LAVA_PLANTS = 613
POTTED_EMBER_TENDRILS = 614 POTTED_EMBER_TENDRILS = 614
VANITY_TREE_WILLOW_SAPLINGS = 615 VANITY_TREE_WILLOW_SAPLINGS = 615
VANITY_TREE_YELLOW_WILLOW = 616 VANITY_TREE_YELLOW_WILLOW = 616
@ -630,6 +629,76 @@ class BlockType(enum.IntEnum):
PRISMATIC_LACEWING_JAR = 620 PRISMATIC_LACEWING_JAR = 620
SLICE_OF_CAKE = 621 SLICE_OF_CAKE = 621
TEAPOT = 622 TEAPOT = 622
POTTED_CRYSTAL_PLANTS = 623
ABIGAILS_FLOWER = 624
VIOLET_MOSS = 625
VIOLET_MOSS_BRICK = 626
RAINBOW_MOSS = 627
RAINBOW_MOSS_BRICK = 628
STINKBUG_CAGE = 629
STINKBUG_HOUSING_BLOCKER = 630
STINKBUG_HOUSING_BLOCKER_ECHO = 631
SCARLET_MACAW_CAGE = 632
ASH_GRASS = 633
TREE_ASH = 634
ASH_WOOD = 635
CORRUPT_VINES = 636
ASH_PLANTS = 637
ASH_VINES = 638
MANA_CRYSTAL = 639
BLUE_MACAW_CAGE = 640
REEF_BLOCK = 641
CHLOROPHYTE_EXTRACTINATOR = 642
TOUCAN_CAGE = 643
YELLOW_COCKATIEL_CAGE = 644
GRAY_COCKATIEL_CAGE = 645
SHADOW_CANDLE = 646
LARGE_PILES_ECHO = 647
LARGE_PILES_2_ECHO = 648
SMALL_PILES_2_X_1_ECHO = 649
SMALL_PILES_1_X_1_ECHO = 650
PLANT_DETRITUS_3_X_2_ECHO = 651
PLANT_DETRITUS_2_X_2_ECHO = 652
POTS_ECHO = 653
TNT_BARREL = 654
PLANTERA_THORNS = 655
GLOW_TULIP = 656
ECHO_MONOLITH = 657
SHIMMER_MONOLITH = 658
SHIMMER_BLOCK = 659
SHIMMERFLY_IN_A_BOTTLE = 660
CORRUPT_JUNGLE_GRASS = 661
CRIMSON_JUNGLE_GRASS = 662
MOONDIAL = 663
BOUNCY_BOULDER = 664
LIFE_CRYSTAL_BOULDER = 665
POOP_BLOCK = 666
SHIMMER_BRICK = 667
DIRTIEST_BLOCK = 668
LUNAR_RUST_BRICK = 669
DARK_CELESTIAL_BRICK = 670
ASTRA_BRICK = 671
COSMIC_EMBER_BRICK = 672
CRYOCORE_BRICK = 673
MERCURY_BRICK = 674
STAR_ROYALE_BRICK = 675
HEAVENFORGE_BRICK = 676
ANCIENT_BLUE_BRICK = 677
ANCIENT_GREEN_BRICK = 678
ANCIENT_PINK_BRICK = 679
ANCIENT_GOLD_BRICK = 680
ANCIENT_SILVER_BRICK = 681
ANCIENT_COPPER_BRICK = 682
ANCIENT_OBSIDIAN_BRICK = 683
ANCIENT_HELLSTONE_BRICK = 684
ANCIENT_COBALT_BRICK = 685
ANCIENT_MYTHRIL_BRICK = 686
LAVA_MOSS_BLOCK = 687
ARGON_MOSS_BLOCK = 688
KRYPTON_MOSS_BLOCK = 689
XENON_MOSS_BLOCK = 690
VIOLET_MOSS_BLOCK = 691
RAINBOW_MOSS_BLOCK = 692
def __repr__(self): def __repr__(self):
return f"{self.__class__.__name__}.{self.name}" return f"{self.__class__.__name__}.{self.name}"