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-client/src/test_utils/simulation.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'azalea-client/src/test_utils') diff --git a/azalea-client/src/test_utils/simulation.rs b/azalea-client/src/test_utils/simulation.rs index 0aeec3ea..1946fd6d 100644 --- a/azalea-client/src/test_utils/simulation.rs +++ b/azalea-client/src/test_utils/simulation.rs @@ -6,7 +6,6 @@ use azalea_buf::AzaleaWrite; use azalea_core::{ delta::LpVec3, game_type::{GameMode, OptionalGameType}, - identifier::Identifier, position::{BlockPos, ChunkPos, Vec3}, tick::GameTick, }; @@ -25,7 +24,12 @@ use azalea_protocol::{ }, }, }; -use azalea_registry::{Biome, DataRegistry, DimensionType, EntityKind}; +use azalea_registry::{ + DataRegistry, + builtin::EntityKind, + data::{Biome, DimensionKind}, + identifier::Identifier, +}; use azalea_world::{Chunk, Instance, MinecraftEntityId, Section, palette::PalettedContainer}; use bevy_app::App; use bevy_ecs::{ @@ -318,13 +322,13 @@ fn tick_app(app: &mut App) { pub fn default_login_packet() -> ClientboundLogin { make_basic_login_packet( - DimensionType::new_raw(0), // overworld + DimensionKind::new_raw(0), // overworld Identifier::new("minecraft:overworld"), ) } pub fn make_basic_login_packet( - dimension_type: DimensionType, + dimension_type: DimensionKind, dimension: Identifier, ) -> ClientboundLogin { ClientboundLogin { @@ -354,7 +358,7 @@ pub fn make_basic_login_packet( } pub fn make_basic_respawn_packet( - dimension_type: DimensionType, + dimension_type: DimensionKind, dimension: Identifier, ) -> ClientboundRespawn { ClientboundRespawn { -- cgit v1.2.3