aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/config/c_registry_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/config/c_registry_data.rs')
-rw-r--r--azalea-protocol/src/packets/config/c_registry_data.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/config/c_registry_data.rs b/azalea-protocol/src/packets/config/c_registry_data.rs
new file mode 100644
index 00000000..185de4c3
--- /dev/null
+++ b/azalea-protocol/src/packets/config/c_registry_data.rs
@@ -0,0 +1,12 @@
+use std::collections::HashMap;
+
+use azalea_buf::AzBuf;
+use azalea_core::resource_location::ResourceLocation;
+use azalea_protocol_macros::ClientboundConfigPacket;
+use simdnbt::owned::NbtCompound;
+
+#[derive(Clone, Debug, AzBuf, ClientboundConfigPacket)]
+pub struct ClientboundRegistryData {
+ pub registry_id: ResourceLocation,
+ pub entries: HashMap<ResourceLocation, Option<NbtCompound>>,
+}