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