azalea_protocol/packets/game/
c_move_minecart_along_track.rs1use azalea_buf::AzBuf;
2use azalea_core::position::Vec3;
3use azalea_protocol_macros::ClientboundGamePacket;
4use azalea_world::MinecraftEntityId;
5
6#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
7pub struct ClientboundMoveMinecartAlongTrack {
8 #[var]
9 pub entity_id: MinecraftEntityId,
10 pub lerp_steps: Vec<MinecartStep>,
11}
12
13#[derive(Clone, Debug, AzBuf)]
14pub struct MinecartStep {
15 pub position: Vec3,
16 pub movement: Vec3,
17 pub y_rot: u8,
18 pub x_rot: u8,
19 pub weight: f32,
20}