pub struct PlayUpdateHealthSpec {
pub health: f32,
pub food: VarInt,
pub saturation: f32,
}
Fields§
§health: f32
§food: VarInt
§saturation: f32
Trait Implementations§
Source§impl Clone for PlayUpdateHealthSpec
impl Clone for PlayUpdateHealthSpec
Source§fn clone(&self) -> PlayUpdateHealthSpec
fn clone(&self) -> PlayUpdateHealthSpec
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 PlayUpdateHealthSpec
impl Debug for PlayUpdateHealthSpec
Source§impl Deserialize for PlayUpdateHealthSpec
impl Deserialize for PlayUpdateHealthSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<PlayUpdateHealthSpec> for (f32, VarInt, f32)
impl From<PlayUpdateHealthSpec> for (f32, VarInt, f32)
Source§fn from(other: PlayUpdateHealthSpec) -> Self
fn from(other: PlayUpdateHealthSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayUpdateHealthSpec
impl PartialEq for PlayUpdateHealthSpec
Source§impl Serialize for PlayUpdateHealthSpec
impl Serialize for PlayUpdateHealthSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayUpdateHealthSpec
Auto Trait Implementations§
impl Freeze for PlayUpdateHealthSpec
impl RefUnwindSafe for PlayUpdateHealthSpec
impl Send for PlayUpdateHealthSpec
impl Sync for PlayUpdateHealthSpec
impl Unpin for PlayUpdateHealthSpec
impl UnwindSafe for PlayUpdateHealthSpec
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