aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_set_health.rs
blob: 82e31f789d88f0fcaabfbabb5bc63ea4c113aeba (plain)
1
2
3
4
5
6
7
8
9
10
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundSetHealth {
    pub health: f32,
    #[var]
    pub food: u32,
    pub saturation: f32,
}