chunkedge_protocol/packets/play/
move_minecart_along_track_s2c.rs1use chunkedge_binary::{Decode, Encode, VarInt};
2
3use crate::{ByteAngle, Packet};
4
5#[derive(Clone, Debug, Encode, Decode, Packet)]
6pub struct MoveMinecartAlongTrackS2c {
7 pub entity_id: VarInt,
8 pub steps: Vec<Step>,
9}
10
11#[derive(Clone, Debug, Encode, Decode)]
12pub struct Step {
13 pub x: f64,
14 pub y: f64,
15 pub z: f64,
16 pub velocity_x: f64,
17 pub velocity_y: f64,
18 pub velocity_z: f64,
19 pub yaw: ByteAngle,
20 pub pitch: ByteAngle,
21 pub weight: f32,
22}