aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_set_score.rs
blob: 07391901e07722af49a22d5c32f437f48271fc14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use azalea_buf::AzBuf;
use azalea_chat::{numbers::NumberFormat, FormattedText};
use azalea_protocol_macros::ClientboundGamePacket;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundSetScore {
    pub owner: String,
    pub objective_name: String,
    #[var]
    pub score: u32,
    pub display: Option<FormattedText>,
    pub number_format: Option<NumberFormat>,
}