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