azalea_protocol/packets/game/
c_update_attributes.rs1use azalea_buf::AzBuf;
2use azalea_core::entity_id::MinecraftEntityId;
3use azalea_protocol_macros::ClientboundGamePacket;
4use azalea_registry::{builtin::Attribute, item::components::AttributeModifier};
5
6#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
7pub struct ClientboundUpdateAttributes {
8 #[var]
9 pub entity_id: MinecraftEntityId,
10 pub values: Vec<AttributeSnapshot>,
11}
12
13#[derive(AzBuf, Clone, Debug, PartialEq)]
14pub struct AttributeSnapshot {
15 pub attribute: Attribute,
16 pub base: f64,
17 pub modifiers: Vec<AttributeModifier>,
18}