pub struct Food {
pub nutrition: u8,
pub saturation: f32,
pub can_always_eat: bool,
}Expand description
The minecraft:food component.
Fields§
§nutrition: u8Hunger points restored.
saturation: f32Saturation restored.
can_always_eat: boolEdible with a full hunger bar.
Trait Implementations§
impl Copy for Food
impl StructuralPartialEq for Food
Auto Trait Implementations§
impl Forget for Food
impl Freeze for Food
impl Move for Food
impl RefUnwindSafe for Food
impl Send for Food
impl Sync for Food
impl Unpin for Food
impl UnsafeUnpin for Food
impl UnwindSafe for Food
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