aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_open_screen_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_open_screen_packet.rs')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_open_screen_packet.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_open_screen_packet.rs b/azalea-protocol/src/packets/game/clientbound_open_screen_packet.rs
new file mode 100644
index 00000000..43ab7716
--- /dev/null
+++ b/azalea-protocol/src/packets/game/clientbound_open_screen_packet.rs
@@ -0,0 +1,13 @@
+use azalea_buf::McBuf;
+use azalea_chat::component::Component;
+use packet_macros::ClientboundGamePacket;
+
+#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
+pub struct ClientboundOpenScreenPacket {
+ #[var]
+ pub container_id: u32,
+ // TODO: have an enum of this
+ #[var]
+ pub menu_type: u32,
+ pub title: Component,
+}