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 --- azalea-core/src/lib.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'azalea-core/src/lib.rs') diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index 16b23c01..d61690aa 100644 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -16,15 +16,21 @@ pub mod direction; pub mod filterable; pub mod game_type; pub mod hit_result; -pub mod identifier; pub mod math; pub mod objectives; pub mod position; pub mod registry_holder; +#[doc(hidden)] pub mod resource_location { - #![deprecated(note = "renamed to `identifier`.")] - #[deprecated(note = "renamed to `identifier::Identifier`.")] - pub type ResourceLocation = crate::identifier::Identifier; + #![deprecated(note = "moved to `azalea_registry::identifier`.")] + #[deprecated(note = "moved to `azalea_registry::identifier::Identifier`.")] + pub type ResourceLocation = azalea_registry::identifier::Identifier; +} +#[doc(hidden)] +pub mod identifier { + #![deprecated(note = "moved to `azalea_registry::identifier`.")] + #[deprecated(note = "moved to `azalea_registry::identifier::Identifier`.")] + pub type Identifier = azalea_registry::identifier::Identifier; } pub mod sound; #[cfg(feature = "bevy_ecs")] -- cgit v1.2.3