pub struct ServerboundPlayBlockPlace {
pub hand: i32,
pub location: Position,
pub direction: i32,
pub cursor_x: f32,
pub cursor_y: f32,
pub cursor_z: f32,
pub inside_block: bool,
pub world_border_hit: bool,
pub sequence: i32,
}Fields§
§hand: i32§location: Position§direction: i32§cursor_x: f32§cursor_y: f32§cursor_z: f32§inside_block: bool§world_border_hit: bool§sequence: i32Implementations§
Source§impl ServerboundPlayBlockPlace
impl ServerboundPlayBlockPlace
Sourcepub const PACKET_ID: i32 = 60i32
pub const PACKET_ID: i32 = 60i32
The packet ID used by the registry to dispatch this packet.
This value is declared via #[packet(id = N)] and corresponds to
the VarInt packet ID read/written by the framing layer. The struct’s
own Encode/Decode does NOT include this ID — it only encodes the
packet’s payload fields.
Trait Implementations§
Source§impl Clone for ServerboundPlayBlockPlace
impl Clone for ServerboundPlayBlockPlace
Source§fn clone(&self) -> ServerboundPlayBlockPlace
fn clone(&self) -> ServerboundPlayBlockPlace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerboundPlayBlockPlace
impl Debug for ServerboundPlayBlockPlace
Source§impl Default for ServerboundPlayBlockPlace
impl Default for ServerboundPlayBlockPlace
Source§fn default() -> ServerboundPlayBlockPlace
fn default() -> ServerboundPlayBlockPlace
Returns the “default value” for a type. Read more
Source§impl Encode for ServerboundPlayBlockPlace
impl Encode for ServerboundPlayBlockPlace
Source§impl EncodedSize for ServerboundPlayBlockPlace
impl EncodedSize for ServerboundPlayBlockPlace
fn encoded_size(&self) -> usize
impl StructuralPartialEq for ServerboundPlayBlockPlace
Auto Trait Implementations§
impl Freeze for ServerboundPlayBlockPlace
impl RefUnwindSafe for ServerboundPlayBlockPlace
impl Send for ServerboundPlayBlockPlace
impl Sync for ServerboundPlayBlockPlace
impl Unpin for ServerboundPlayBlockPlace
impl UnsafeUnpin for ServerboundPlayBlockPlace
impl UnwindSafe for ServerboundPlayBlockPlace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more