pub struct Fluid<'buffer> {
pub name: &'buffer str,
pub label: &'buffer str,
pub amount: NonZeroU32,
pub has_tag: bool,
}
Expand description
Information about a fluid.
The 'buffer
lifetime is the lifetime of the buffer holding strings to which the object
refers.
Fields§
§name: &'buffer str
The internal (Minecraft system) name of the item.
For example, this might be water
.
label: &'buffer str
The human-readable name of the item.
For example, this might be Water
.
amount: NonZeroU32
The number of millibuckets of fluid in the container.
has_tag: bool
Whether the fluid has extra NBT data attached.
Trait Implementations§
Source§impl<'buffer> Ord for Fluid<'buffer>
impl<'buffer> Ord for Fluid<'buffer>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'buffer> PartialOrd for Fluid<'buffer>
impl<'buffer> PartialOrd for Fluid<'buffer>
impl<'buffer> Eq for Fluid<'buffer>
impl<'buffer> StructuralPartialEq for Fluid<'buffer>
Auto Trait Implementations§
impl<'buffer> Freeze for Fluid<'buffer>
impl<'buffer> RefUnwindSafe for Fluid<'buffer>
impl<'buffer> Send for Fluid<'buffer>
impl<'buffer> Sync for Fluid<'buffer>
impl<'buffer> Unpin for Fluid<'buffer>
impl<'buffer> UnwindSafe for Fluid<'buffer>
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