pub struct ClientboundPlayBlockAction {
pub location: Position,
pub byte1: u8,
pub byte2: u8,
pub block_id: i32,
}Fields§
§location: Position§byte1: u8§byte2: u8§block_id: i32Implementations§
Source§impl ClientboundPlayBlockAction
impl ClientboundPlayBlockAction
Sourcepub const PACKET_ID: i32 = 8i32
pub const PACKET_ID: i32 = 8i32
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 ClientboundPlayBlockAction
impl Clone for ClientboundPlayBlockAction
Source§fn clone(&self) -> ClientboundPlayBlockAction
fn clone(&self) -> ClientboundPlayBlockAction
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 ClientboundPlayBlockAction
impl Debug for ClientboundPlayBlockAction
Source§impl Default for ClientboundPlayBlockAction
impl Default for ClientboundPlayBlockAction
Source§fn default() -> ClientboundPlayBlockAction
fn default() -> ClientboundPlayBlockAction
Returns the “default value” for a type. Read more
Source§impl Encode for ClientboundPlayBlockAction
impl Encode for ClientboundPlayBlockAction
Source§impl EncodedSize for ClientboundPlayBlockAction
impl EncodedSize for ClientboundPlayBlockAction
fn encoded_size(&self) -> usize
impl StructuralPartialEq for ClientboundPlayBlockAction
Auto Trait Implementations§
impl Freeze for ClientboundPlayBlockAction
impl RefUnwindSafe for ClientboundPlayBlockAction
impl Send for ClientboundPlayBlockAction
impl Sync for ClientboundPlayBlockAction
impl Unpin for ClientboundPlayBlockAction
impl UnsafeUnpin for ClientboundPlayBlockAction
impl UnwindSafe for ClientboundPlayBlockAction
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