chunkedge_protocol/packets/play/
resource_pack_c2s.rs

1use chunkedge_binary::{Decode, Encode};
2use uuid::Uuid;
3
4use crate::Packet;
5
6#[derive(Copy, Clone, PartialEq, Eq, Debug, Encode, Decode, Packet)]
7pub struct ResourcePackC2s {
8    pub uuid: Uuid,
9    pub result: ResourcePackStatus,
10}
11
12#[derive(Copy, Clone, PartialEq, Eq, Debug, Encode, Decode)]
13pub enum ResourcePackStatus {
14    /// The client has successfully loaded the server's resource pack.
15    SuccessfullyLoaded,
16    /// The client has declined the server's resource pack.
17    Declined,
18    /// The client has failed to download the server's resource pack.
19    FailedDownload,
20    /// The client has accepted the server's resource pack.
21    Accepted,
22    Downloaded,
23    InvalidUrl,
24    FailedToReload,
25    Discarded,
26}