chunkedge_protocol/packets/play/resource_pack_push_s2c.rs
1use std::borrow::Cow;
2
3use chunkedge_binary::{Bounded, Decode, Encode, TextComponent};
4use uuid::Uuid;
5
6use crate::Packet;
7
8#[derive(Clone, PartialEq, Debug, Encode, Decode, Packet)]
9pub struct ResourcePackPushS2c<'a> {
10 pub uuid: Uuid,
11 pub url: Bounded<&'a str, 32767>,
12 pub hash: Bounded<&'a str, 40>,
13 pub forced: bool,
14 pub prompt_message: Option<Cow<'a, TextComponent>>,
15}