Struct CauldronFluidContentRegistry
#[non_exhaustive]pub struct CauldronFluidContentRegistry { /* private fields */ }Expand description
Engine-owned storage behind the registrar.
Trait Implementations§
§impl CauldronFluidContents for CauldronFluidContentRegistry
impl CauldronFluidContents for CauldronFluidContentRegistry
§fn register(
&mut self,
block: BlockKey,
fluid: FluidKey,
total: u32,
level: Option<&str>,
)
fn register( &mut self, block: BlockKey, fluid: FluidKey, total: u32, level: Option<&str>, )
block holds total millibuckets of fluid when full. level names the block’s
integer level property, whose greatest value is the number of levels the cauldron
fills by; none means the cauldron is only ever full, as a lava cauldron. Each level
holds total ÷ the number of levels, so total must divide evenly by it.
Totals must be in 1..=i32::MAX, the fluid capability amount range. The property
must contain every canonical integer from 1 through its maximum (and may include 0).§impl Default for CauldronFluidContentRegistry
impl Default for CauldronFluidContentRegistry
§fn default() -> CauldronFluidContentRegistry
fn default() -> CauldronFluidContentRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CauldronFluidContentRegistry
impl RefUnwindSafe for CauldronFluidContentRegistry
impl Send for CauldronFluidContentRegistry
impl Sync for CauldronFluidContentRegistry
impl Unpin for CauldronFluidContentRegistry
impl UnsafeUnpin for CauldronFluidContentRegistry
impl UnwindSafe for CauldronFluidContentRegistry
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