From f9c25665c203d6377ace62f1e95381d037d8fd9e Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Fri, 12 Dec 2025 00:56:02 -0600 Subject: Refactor azalea-registry (#294) * move registries in azalea-registry into separate modules * rename Item and Block to ItemKind and BlockKind * remove 'extra' registries from azalea-registry * hide deprecated items from docs * use DamageKindKey instead of Identifier when parsing registries * store tag entries as a Vec instead of a HashSet * sort tag values by protocol id * update changelog --- codegen/lib/code/blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'codegen/lib/code/blocks.py') diff --git a/codegen/lib/code/blocks.py b/codegen/lib/code/blocks.py index 9f783690..84d9fffb 100644 --- a/codegen/lib/code/blocks.py +++ b/codegen/lib/code/blocks.py @@ -6,7 +6,7 @@ BLOCKS_RS_DIR = get_dir_location("../azalea-block/src/generated.rs") # - Property: A property of a block, like "direction" # - Variant: A potential state of a property, like "up" # - State: A possible state of a block, a combination of variants -# - Block: Has properties and states. +# - BlockKind: Has properties and states. def generate_blocks( @@ -85,7 +85,7 @@ def generate_blocks( new_make_block_states_macro_code.append(" },") - # Block codegen + # BlockKind codegen new_make_block_states_macro_code.append(" Blocks => {") for block_id in ordered_blocks: block_data_report = blocks_report["minecraft:" + block_id] -- cgit v1.2.3