From 40e4096d2435533eacb817ad5a5e12c7ced8fa5c Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 23 Oct 2024 00:08:13 -0500 Subject: 1.21.2 (#171) * partially implement 24w35a * start updating to 24w39a + itemcomponent codegen * fix codegen and broken packets to finish updating to 24w39a :D * update to 1.21.2 except for blocks * update ServerboundPlayerInputPacket impl --- .../game/clientbound_server_links_packet.rs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 azalea-protocol/src/packets/game/clientbound_server_links_packet.rs (limited to 'azalea-protocol/src/packets/game/clientbound_server_links_packet.rs') diff --git a/azalea-protocol/src/packets/game/clientbound_server_links_packet.rs b/azalea-protocol/src/packets/game/clientbound_server_links_packet.rs new file mode 100644 index 00000000..4b24a519 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_server_links_packet.rs @@ -0,0 +1,34 @@ +use azalea_buf::McBuf; +use azalea_chat::FormattedText; +use azalea_protocol_macros::ClientboundGamePacket; + +#[derive(Clone, Debug, McBuf, ClientboundGamePacket)] +pub struct ClientboundServerLinksPacket { + pub links: Vec, +} + +#[derive(Clone, Debug, McBuf)] +pub struct ServerLinkEntry { + pub kind: ServerLinkKind, + pub link: String, +} + +#[derive(Clone, Debug, McBuf)] +pub enum ServerLinkKind { + Known(KnownLinkKind), + Component(FormattedText), +} + +#[derive(Clone, Copy, Debug, McBuf)] +pub enum KnownLinkKind { + BugReport, + CommunityGuidelines, + Support, + Status, + Feedback, + Community, + Website, + Forums, + News, + Announcements, +} -- cgit v1.2.3