chunkedge_protocol/packets/configuration/
resource_pack_push_s2c.rs1use chunkedge_binary::{Bounded, Decode, Encode, TextComponent};
2use std::borrow::Cow;
3use uuid::Uuid;
4
5use crate::{Packet, PacketState};
6
7#[derive(Clone, Debug, Encode, Decode, Packet)]
8#[packet(state = PacketState::Configuration, )]
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}