aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_move_minecart_along_track.rs
blob: 68b9f6f9b1512d51351cf561dff2e6e0c7b94332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use azalea_buf::AzBuf;
use azalea_core::position::Vec3;
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_core::entity_id::MinecraftEntityId;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundMoveMinecartAlongTrack {
    #[var]
    pub entity_id: MinecraftEntityId,
    pub lerp_steps: Vec<MinecartStep>,
}

#[derive(AzBuf, Clone, Debug, PartialEq)]
pub struct MinecartStep {
    pub position: Vec3,
    pub movement: Vec3,
    pub y_rot: u8,
    pub x_rot: u8,
    pub weight: f32,
}