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