mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
* 23w40a * 23w41a * 23w42a * 23w43a * 23w44a * serialize FormattedText as nbt in network * use azalea-nbt/serde in azalea-chat * 23w45a * fix 23w45a to compile * handle Object in codegen * 1.20.3-pre2 * remove unused clientbound_resource_pack_packet.rs * merge main and make azalea-chat use simdnbt * 1.20.3-rc1 * fix tests * use simdnbt 0.3 * fix ServerboundSetJigsawBlockPacket * 1.20.3
20 lines
439 B
Rust
Executable file
20 lines
439 B
Rust
Executable file
use azalea_buf::McBuf;
|
|
use azalea_protocol_macros::ServerboundGamePacket;
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
|
|
pub struct ServerboundResourcePackPacket {
|
|
pub id: Uuid,
|
|
pub action: Action,
|
|
}
|
|
|
|
#[derive(McBuf, Clone, Copy, Debug)]
|
|
pub enum Action {
|
|
SuccessfullyLoaded = 0,
|
|
Declined = 1,
|
|
FailedDownload = 2,
|
|
Accepted = 3,
|
|
InvalidUrl = 4,
|
|
FailedReload = 5,
|
|
Discarded = 6,
|
|
}
|