aboutsummaryrefslogtreecommitdiff
path: root/codegen/genblocks.py
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-08-27 20:31:21 -0500
committerGitHub <noreply@github.com>2022-08-27 20:31:21 -0500
commitb8228a036016fa58cab4b00a2e62298df299d41f (patch)
tree37ab80c054d2c0832d0ebf61cbbefd9e368260a8 /codegen/genblocks.py
parent029ae0e567ccdc631a358755eba43b742811ff05 (diff)
downloadazalea-drasl-b8228a036016fa58cab4b00a2e62298df299d41f.tar.xz
Azalea registry (#20)
* make azalea-registry crate * add trait feature to az-block * registr * registry macro * impl Display for registry things * registries
Diffstat (limited to 'codegen/genblocks.py')
-rw-r--r--codegen/genblocks.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/codegen/genblocks.py b/codegen/genblocks.py
index 174d2e16..fe5eddd1 100644
--- a/codegen/genblocks.py
+++ b/codegen/genblocks.py
@@ -8,18 +8,8 @@ import lib.utils
version_id = lib.code.version.get_version_id()
-
lib.extract.get_generator_mod_data(version_id, 'blockCollisionShapes')
-# lib.download.get_burger()
-# lib.download.get_client_jar(version_id)
-
-# print('Generating data with burger')
-# os.system(
-# f'cd {lib.utils.get_dir_location("downloads/Burger")} && python munch.py ../client-{version_id}.jar --output ../burger-{version_id}.json --toppings blockstates'
-# )
-# print('Ok')
-
mappings = lib.download.get_mappings_for_version(version_id)
block_states_burger = lib.extract.get_block_states_burger(version_id)
ordered_blocks = lib.extract.get_ordered_blocks_burger(version_id)
@@ -27,3 +17,7 @@ block_states_report = lib.extract.get_block_states_report(version_id)
lib.code.blocks.generate_blocks(
block_states_burger, block_states_report, ordered_blocks, mappings)
+
+lib.code.utils.fmt()
+
+print('Done!')