aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_take_item_entity.rs
blob: b46c8c3af47b0f05c2e5aef67c247ef1f7690261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_core::entity_id::MinecraftEntityId;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundTakeItemEntity {
    #[var]
    pub item_id: u32,
    #[var]
    pub player_id: MinecraftEntityId,
    #[var]
    pub amount: u32,
}