aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/config/s_resource_pack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/config/s_resource_pack.rs')
-rw-r--r--azalea-protocol/src/packets/config/s_resource_pack.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/config/s_resource_pack.rs b/azalea-protocol/src/packets/config/s_resource_pack.rs
new file mode 100644
index 00000000..0822c723
--- /dev/null
+++ b/azalea-protocol/src/packets/config/s_resource_pack.rs
@@ -0,0 +1,20 @@
+use azalea_buf::AzBuf;
+use azalea_protocol_macros::ServerboundConfigPacket;
+use uuid::Uuid;
+
+#[derive(Clone, Debug, AzBuf, ServerboundConfigPacket)]
+pub struct ServerboundResourcePack {
+ pub id: Uuid,
+ pub action: Action,
+}
+
+#[derive(AzBuf, Clone, Copy, Debug)]
+pub enum Action {
+ SuccessfullyLoaded = 0,
+ Declined = 1,
+ FailedDownload = 2,
+ Accepted = 3,
+ InvalidUrl = 4,
+ FailedReload = 5,
+ Discarded = 6,
+}