Struct ModFluidTanks
#[non_exhaustive]pub struct ModFluidTanks {
pub tanks: Vec<i32>,
pub faces: [Vec<usize>; 6],
pub inputs: Vec<usize>,
pub outputs: Vec<usize>,
}Expand description
The fluid tanks of a mod block’s block entity, in the container’s shape:
each tank’s capacity in millibuckets, the tanks each face reaches, and
the tanks a fill may reach and a drain may take. The tanks’ contents are
not here: they live in the entity’s saved compound, under fluids, so
they survive restarts and the block’s own tick reads them.
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.tanks: Vec<i32>Each tank’s capacity in millibuckets, in tank order.
faces: [Vec<usize>; 6]§inputs: Vec<usize>The tanks a fill may reach (canPlaceItemThroughFace).
outputs: Vec<usize>The tanks a drain may take from (canTakeItemThroughFace).
Trait Implementations§
§impl Clone for ModFluidTanks
impl Clone for ModFluidTanks
§fn clone(&self) -> ModFluidTanks
fn clone(&self) -> ModFluidTanks
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 more§impl Debug for ModFluidTanks
impl Debug for ModFluidTanks
§impl Default for ModFluidTanks
impl Default for ModFluidTanks
§fn default() -> ModFluidTanks
fn default() -> ModFluidTanks
Returns the “default value” for a type. Read more
impl Eq for ModFluidTanks
§impl PartialEq for ModFluidTanks
impl PartialEq for ModFluidTanks
impl StructuralPartialEq for ModFluidTanks
Auto Trait Implementations§
impl Freeze for ModFluidTanks
impl RefUnwindSafe for ModFluidTanks
impl Send for ModFluidTanks
impl Sync for ModFluidTanks
impl Unpin for ModFluidTanks
impl UnsafeUnpin for ModFluidTanks
impl UnwindSafe for ModFluidTanks
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