pub struct Fluid {
pub key: Identifier,
pub is_empty: bool,
pub is_source: bool,
pub block: Identifier,
pub bucket_item: Identifier,
pub source_fluid: Option<Identifier>,
pub flowing_fluid: Option<Identifier>,
pub tick_delay: u32,
pub explosion_resistance: f32,
}Expand description
A fluid type definition (e.g., water, lava, empty).
Fields§
§key: IdentifierThe identifier for this fluid (e.g., “minecraft:water”).
is_empty: boolWhether this fluid is empty (air).
is_source: boolWhether this is a source fluid (vs flowing).
block: IdentifierThe block this fluid places.
bucket_item: IdentifierThe bucket item for this fluid.
source_fluid: Option<Identifier>The source fluid identifier (for flowing fluids).
flowing_fluid: Option<Identifier>The flowing fluid identifier (for source fluids).
tick_delay: u32Tick delay for fluid updates.
explosion_resistance: f32Explosion resistance.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fluid
impl RefUnwindSafe for Fluid
impl Send for Fluid
impl Sync for Fluid
impl Unpin for Fluid
impl UnsafeUnpin for Fluid
impl UnwindSafe for Fluid
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