azalea_protocol/packets/game/s_resource_pack.rs
1use azalea_buf::AzBuf;
2use azalea_protocol_macros::ServerboundGamePacket;
3use uuid::Uuid;
4
5#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
6pub struct ServerboundResourcePack {
7 pub id: Uuid,
8 pub action: Action,
9}
10
11#[derive(AzBuf, Clone, Copy, Debug)]
12pub enum Action {
13 SuccessfullyLoaded = 0,
14 Declined = 1,
15 FailedDownload = 2,
16 Accepted = 3,
17 InvalidUrl = 4,
18 FailedReload = 5,
19 Discarded = 6,
20}