aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/extract.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/lib/extract.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/lib/extract.py')
-rw-r--r--codegen/lib/extract.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/codegen/lib/extract.py b/codegen/lib/extract.py
index 070aba14..75e4908b 100644
--- a/codegen/lib/extract.py
+++ b/codegen/lib/extract.py
@@ -24,6 +24,12 @@ def get_block_states_report(version_id: str):
return json.load(f)
+def get_registries_report(version_id: str):
+ generate_data_from_server_jar(version_id)
+ with open(get_dir_location(f'downloads/generated-{version_id}/reports/registries.json'), 'r') as f:
+ return json.load(f)
+
+
def get_block_states_burger(version_id: str):
burger_data = get_burger_data_for_version(version_id)
return burger_data[0]['blocks']['block']