BlockPosition

Type Alias BlockPosition 

Source
pub type BlockPosition = Vector3D<i32>;

Aliased Type§

#[repr(C)]
pub struct BlockPosition { pub x: i32, pub y: i32, pub z: i32, }

Fields§

§x: i32

The x (traditionally, horizontal) coordinate.

§y: i32

The y (traditionally, vertical) coordinate.

§z: i32

The z (traditionally, depth) coordinate.

Trait Implementations§

Source§

impl PacketReadable for BlockPosition

Source§

fn read<'life0, 'async_trait>( input: &'life0 mut (impl 'async_trait + InputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PacketWritable for BlockPosition

Source§

fn write<'life0, 'async_trait>( self, output: &'life0 mut (impl 'async_trait + OutputPacketBytes), ) -> Pin<Box<dyn Future<Output = PacketWritableResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,