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