aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/tests
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-13 12:34:47 +0930
committermat <git@matdoes.dev>2025-11-13 07:04:52 +0400
commitfbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (patch)
tree3126fb34a4e0ac979a1103a8227a2b9a136c1553 /azalea-physics/tests
parenta4312599f7c04709a92b7be238dcf577bafbb14f (diff)
downloadazalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'azalea-physics/tests')
-rw-r--r--azalea-physics/tests/physics.rs26
1 files changed, 13 insertions, 13 deletions
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,