From b8228a036016fa58cab4b00a2e62298df299d41f Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 27 Aug 2022 20:31:21 -0500 Subject: Azalea registry (#20) * make azalea-registry crate * add trait feature to az-block * registr * registry macro * impl Display for registry things * registries --- codegen/lib/extract.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'codegen/lib/extract.py') 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'] -- cgit v1.2.3