aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/configuration/serverbound_resource_pack_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/configuration/serverbound_resource_pack_packet.rs')
-rw-r--r--azalea-protocol/src/packets/configuration/serverbound_resource_pack_packet.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/configuration/serverbound_resource_pack_packet.rs b/azalea-protocol/src/packets/configuration/serverbound_resource_pack_packet.rs
new file mode 100644
index 00000000..11149115
--- /dev/null
+++ b/azalea-protocol/src/packets/configuration/serverbound_resource_pack_packet.rs
@@ -0,0 +1,15 @@
+use azalea_buf::McBuf;
+use azalea_protocol_macros::ServerboundConfigurationPacket;
+
+#[derive(Clone, Debug, McBuf, ServerboundConfigurationPacket)]
+pub struct ServerboundResourcePackPacket {
+ pub action: Action,
+}
+
+#[derive(McBuf, Clone, Copy, Debug)]
+pub enum Action {
+ SuccessfullyLoaded = 0,
+ Declined = 1,
+ FailedDownload = 2,
+ Accepted = 3,
+}