Struct WorldFluid
#[non_exhaustive]pub struct WorldFluid {
pub tick_delay: i32,
pub drop_off: i32,
pub slope_find_distance: i32,
pub source_conversion: bool,
pub bucket: bool,
}Expand description
Simulation and bucket settings for a declared world fluid.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tick_delay: i32Ticks between flow steps, at least one.
drop_off: i32Amount lost per block, from one to seven.
slope_find_distance: i32Search distance for a way down, from one to four.
source_conversion: boolWhether two sources can create another source.
bucket: boolWhether a filled bucket is registered.
Implementations§
Trait Implementations§
§impl Clone for WorldFluid
impl Clone for WorldFluid
§fn clone(&self) -> WorldFluid
fn clone(&self) -> WorldFluid
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WorldFluid
§impl Debug for WorldFluid
impl Debug for WorldFluid
§impl Default for WorldFluid
impl Default for WorldFluid
§fn default() -> WorldFluid
fn default() -> WorldFluid
Returns the “default value” for a type. Read more
impl Eq for WorldFluid
§impl PartialEq for WorldFluid
impl PartialEq for WorldFluid
impl StructuralPartialEq for WorldFluid
Auto Trait Implementations§
impl Freeze for WorldFluid
impl RefUnwindSafe for WorldFluid
impl Send for WorldFluid
impl Sync for WorldFluid
impl Unpin for WorldFluid
impl UnsafeUnpin for WorldFluid
impl UnwindSafe for WorldFluid
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