1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
azalea/azalea-protocol/src/packets/game/c_move_minecart_along_track.rs

20 lines
503 B
Rust

use azalea_buf::AzBuf;
use azalea_core::position::Vec3;
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_world::MinecraftEntityId;
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
pub struct ClientboundMoveMinecartAlongTrack {
#[var]
pub entity_id: MinecraftEntityId,
pub lerp_steps: Vec<MinecartStep>,
}
#[derive(Clone, Debug, AzBuf)]
pub struct MinecartStep {
pub position: Vec3,
pub movement: Vec3,
pub y_rot: u8,
pub x_rot: u8,
pub weight: f32,
}