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-physics | |
| parent | a4312599f7c04709a92b7be238dcf577bafbb14f (diff) | |
| download | azalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz | |
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'azalea-physics')
| -rw-r--r-- | azalea-physics/src/fluids.rs | 4 | ||||
| -rw-r--r-- | azalea-physics/tests/physics.rs | 26 |
2 files changed, 15 insertions, 15 deletions
diff --git a/azalea-physics/src/fluids.rs b/azalea-physics/src/fluids.rs index c37a9917..01ffe75f 100644 --- a/azalea-physics/src/fluids.rs +++ b/azalea-physics/src/fluids.rs @@ -4,8 +4,8 @@ use azalea_block::{ }; use azalea_core::{ direction::Direction, + identifier::Identifier, position::{BlockPos, Vec3}, - resource_location::ResourceLocation, }; use azalea_entity::{HasClientLoaded, LocalEntity, Physics, Position}; use azalea_world::{Instance, InstanceContainer, InstanceName}; @@ -40,7 +40,7 @@ pub fn update_in_water_state_and_do_fluid_pushing( let is_ultrawarm = world .registries .map - .get(&ResourceLocation::new("minecraft:dimension_type")) + .get(&Identifier::new("minecraft:dimension_type")) .and_then(|d| { d.get(&**instance_name) .map(|d| d.byte("ultrawarm") != Some(0)) diff --git a/azalea-physics/tests/physics.rs b/azalea-physics/tests/physics.rs index b312b31e..09cb5379 100644 --- a/azalea-physics/tests/physics.rs +++ b/azalea-physics/tests/physics.rs @@ -5,9 +5,9 @@ use azalea_block::{ properties::WaterLevel, }; use azalea_core::{ + identifier::Identifier, position::{BlockPos, ChunkPos, Vec3}, registry_holder::RegistryHolder, - resource_location::ResourceLocation, tick::GameTick, }; use azalea_entity::{EntityBundle, EntityPlugin, HasClientLoaded, LocalEntity, Physics, Position}; @@ -29,7 +29,7 @@ pub fn insert_overworld(app: &mut App) -> Arc<RwLock<Instance>> { app.world_mut() .resource_mut::<InstanceContainer>() .get_or_insert( - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), 384, -64, &RegistryHolder::default(), @@ -59,7 +59,7 @@ fn test_gravity() { z: 0., }, azalea_registry::EntityKind::Zombie, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -115,7 +115,7 @@ fn test_collision() { z: 0.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -172,7 +172,7 @@ fn test_slab_collision() { z: 0.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -223,7 +223,7 @@ fn test_top_slab_collision() { z: 0.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -258,7 +258,7 @@ fn test_weird_wall_collision() { .world_mut() .resource_mut::<InstanceContainer>() .get_or_insert( - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), 384, -64, &RegistryHolder::default(), @@ -281,7 +281,7 @@ fn test_weird_wall_collision() { z: 0.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -321,7 +321,7 @@ fn test_negative_coordinates_weird_wall_collision() { .world_mut() .resource_mut::<InstanceContainer>() .get_or_insert( - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), 384, -64, &RegistryHolder::default(), @@ -344,7 +344,7 @@ fn test_negative_coordinates_weird_wall_collision() { z: -7.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -388,7 +388,7 @@ fn spawn_and_unload_world() { .world_mut() .resource_mut::<InstanceContainer>() .get_or_insert( - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), 384, -64, &RegistryHolder::default(), @@ -411,7 +411,7 @@ fn spawn_and_unload_world() { z: -7.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, @@ -527,7 +527,7 @@ fn test_afk_pool() { z: 1.5, }, azalea_registry::EntityKind::Player, - ResourceLocation::new("minecraft:overworld"), + Identifier::new("minecraft:overworld"), ), MinecraftEntityId(0), LocalEntity, |
