aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/config
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-protocol/src/packets/config
parenta4312599f7c04709a92b7be238dcf577bafbb14f (diff)
downloadazalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'azalea-protocol/src/packets/config')
-rw-r--r--azalea-protocol/src/packets/config/c_cookie_request.rs4
-rw-r--r--azalea-protocol/src/packets/config/c_custom_payload.rs4
-rw-r--r--azalea-protocol/src/packets/config/c_registry_data.rs6
-rw-r--r--azalea-protocol/src/packets/config/c_store_cookie.rs4
-rw-r--r--azalea-protocol/src/packets/config/c_update_enabled_features.rs4
-rw-r--r--azalea-protocol/src/packets/config/s_cookie_response.rs4
-rw-r--r--azalea-protocol/src/packets/config/s_custom_click_action.rs4
-rw-r--r--azalea-protocol/src/packets/config/s_custom_payload.rs4
8 files changed, 17 insertions, 17 deletions
diff --git a/azalea-protocol/src/packets/config/c_cookie_request.rs b/azalea-protocol/src/packets/config/c_cookie_request.rs
index c1a42cac..ff368b63 100644
--- a/azalea-protocol/src/packets/config/c_cookie_request.rs
+++ b/azalea-protocol/src/packets/config/c_cookie_request.rs
@@ -1,8 +1,8 @@
use azalea_buf::AzBuf;
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ClientboundConfigPacket;
#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)]
pub struct ClientboundCookieRequest {
- pub key: ResourceLocation,
+ pub key: Identifier,
}
diff --git a/azalea-protocol/src/packets/config/c_custom_payload.rs b/azalea-protocol/src/packets/config/c_custom_payload.rs
index 19335264..03776bf9 100644
--- a/azalea-protocol/src/packets/config/c_custom_payload.rs
+++ b/azalea-protocol/src/packets/config/c_custom_payload.rs
@@ -1,9 +1,9 @@
use azalea_buf::{AzBuf, UnsizedByteArray};
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ClientboundConfigPacket;
#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)]
pub struct ClientboundCustomPayload {
- pub identifier: ResourceLocation,
+ pub identifier: Identifier,
pub data: UnsizedByteArray,
}
diff --git a/azalea-protocol/src/packets/config/c_registry_data.rs b/azalea-protocol/src/packets/config/c_registry_data.rs
index 18d2e73b..16a86a9f 100644
--- a/azalea-protocol/src/packets/config/c_registry_data.rs
+++ b/azalea-protocol/src/packets/config/c_registry_data.rs
@@ -1,10 +1,10 @@
use azalea_buf::AzBuf;
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ClientboundConfigPacket;
use simdnbt::owned::NbtCompound;
#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)]
pub struct ClientboundRegistryData {
- pub registry_id: ResourceLocation,
- pub entries: Vec<(ResourceLocation, Option<NbtCompound>)>,
+ pub registry_id: Identifier,
+ pub entries: Vec<(Identifier, Option<NbtCompound>)>,
}
diff --git a/azalea-protocol/src/packets/config/c_store_cookie.rs b/azalea-protocol/src/packets/config/c_store_cookie.rs
index 5fa03729..3d797d18 100644
--- a/azalea-protocol/src/packets/config/c_store_cookie.rs
+++ b/azalea-protocol/src/packets/config/c_store_cookie.rs
@@ -1,9 +1,9 @@
use azalea_buf::AzBuf;
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ClientboundConfigPacket;
#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)]
pub struct ClientboundStoreCookie {
- pub key: ResourceLocation,
+ pub key: Identifier,
pub payload: Vec<u8>,
}
diff --git a/azalea-protocol/src/packets/config/c_update_enabled_features.rs b/azalea-protocol/src/packets/config/c_update_enabled_features.rs
index 7d86ceb4..b4e0e9c1 100644
--- a/azalea-protocol/src/packets/config/c_update_enabled_features.rs
+++ b/azalea-protocol/src/packets/config/c_update_enabled_features.rs
@@ -1,8 +1,8 @@
use azalea_buf::AzBuf;
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ClientboundConfigPacket;
#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundConfigPacket)]
pub struct ClientboundUpdateEnabledFeatures {
- pub features: Vec<ResourceLocation>,
+ pub features: Vec<Identifier>,
}
diff --git a/azalea-protocol/src/packets/config/s_cookie_response.rs b/azalea-protocol/src/packets/config/s_cookie_response.rs
index 590a651e..ae44953e 100644
--- a/azalea-protocol/src/packets/config/s_cookie_response.rs
+++ b/azalea-protocol/src/packets/config/s_cookie_response.rs
@@ -1,9 +1,9 @@
use azalea_buf::AzBuf;
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ServerboundConfigPacket;
#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundConfigPacket)]
pub struct ServerboundCookieResponse {
- pub key: ResourceLocation,
+ pub key: Identifier,
pub payload: Option<Vec<u8>>,
}
diff --git a/azalea-protocol/src/packets/config/s_custom_click_action.rs b/azalea-protocol/src/packets/config/s_custom_click_action.rs
index 0c33d635..21b5cfbb 100644
--- a/azalea-protocol/src/packets/config/s_custom_click_action.rs
+++ b/azalea-protocol/src/packets/config/s_custom_click_action.rs
@@ -1,10 +1,10 @@
use azalea_buf::AzBuf;
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ServerboundConfigPacket;
use simdnbt::owned::Nbt;
#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundConfigPacket)]
pub struct ServerboundCustomClickAction {
- pub id: ResourceLocation,
+ pub id: Identifier,
pub payload: Nbt,
}
diff --git a/azalea-protocol/src/packets/config/s_custom_payload.rs b/azalea-protocol/src/packets/config/s_custom_payload.rs
index fec04fb5..1bdc85af 100644
--- a/azalea-protocol/src/packets/config/s_custom_payload.rs
+++ b/azalea-protocol/src/packets/config/s_custom_payload.rs
@@ -1,9 +1,9 @@
use azalea_buf::{AzBuf, UnsizedByteArray};
-use azalea_core::resource_location::ResourceLocation;
+use azalea_core::identifier::Identifier;
use azalea_protocol_macros::ServerboundConfigPacket;
#[derive(Clone, Debug, AzBuf, PartialEq, ServerboundConfigPacket)]
pub struct ServerboundCustomPayload {
- pub identifier: ResourceLocation,
+ pub identifier: Identifier,
pub data: UnsizedByteArray,
}