Skip to main content

azalea_protocol/packets/game/
c_damage_event.rs

1use azalea_buf::AzBuf;
2use azalea_core::{
3    entity_id::{MinecraftEntityId, OptionalEntityId},
4    position::Vec3,
5};
6use azalea_protocol_macros::ClientboundGamePacket;
7
8#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
9pub struct ClientboundDamageEvent {
10    #[var]
11    pub entity_id: MinecraftEntityId,
12    #[var]
13    pub source_type_id: u32,
14    pub source_cause_id: OptionalEntityId,
15    pub source_direct_id: OptionalEntityId,
16    pub source_position: Option<Vec3>,
17}