azalea_protocol/packets/game/c_set_score.rs
1use azalea_buf::AzBuf;
2use azalea_chat::{numbers::NumberFormat, FormattedText};
3use azalea_protocol_macros::ClientboundGamePacket;
4
5#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
6pub struct ClientboundSetScore {
7 pub owner: String,
8 pub objective_name: String,
9 #[var]
10 pub score: u32,
11 pub display: Option<FormattedText>,
12 pub number_format: Option<NumberFormat>,
13}