diff options
| author | mat <git@matdoes.dev> | 2025-11-13 12:34:47 +0930 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-11-13 07:04:52 +0400 |
| commit | fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (patch) | |
| tree | 3126fb34a4e0ac979a1103a8227a2b9a136c1553 /azalea/src | |
| parent | a4312599f7c04709a92b7be238dcf577bafbb14f (diff) | |
| download | azalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz | |
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/lib.rs | 5 | ||||
| -rw-r--r-- | azalea/src/pathfinder/simulation.rs | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 069837b3..f4f0844d 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -21,10 +21,13 @@ pub use azalea_buf as buf; pub use azalea_chat::FormattedText; pub use azalea_client::*; pub use azalea_core as core; +#[deprecated(note = "renamed to `Identifier`.")] +#[expect(deprecated)] +pub use azalea_core::resource_location::ResourceLocation; // these are re-exported on this level because they're very common pub use azalea_core::{ + identifier::Identifier, position::{BlockPos, Vec3}, - resource_location::ResourceLocation, }; pub use azalea_entity as entity; pub use azalea_physics as physics; diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index 94836d3b..3b8a46cc 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -6,9 +6,7 @@ use azalea_client::{ PhysicsState, interact::BlockStatePredictionHandler, inventory::Inventory, local_player::LocalGameMode, mining::MineBundle, }; -use azalea_core::{ - game_type::GameMode, position::Vec3, resource_location::ResourceLocation, tick::GameTick, -}; +use azalea_core::{game_type::GameMode, identifier::Identifier, position::Vec3, tick::GameTick}; use azalea_entity::{ Attributes, LookDirection, Physics, Position, default_attributes, dimensions::EntityDimensions, }; @@ -44,8 +42,8 @@ impl SimulatedPlayerBundle { } } -fn simulation_instance_name() -> ResourceLocation { - ResourceLocation::new("azalea:simulation") +fn simulation_instance_name() -> Identifier { + Identifier::new("azalea:simulation") } fn create_simulation_instance(chunks: ChunkStorage) -> (App, Arc<RwLock<Instance>>) { |
