Enum FluidBoxError
#[non_exhaustive]pub enum FluidBoxError {
UnsupportedFluid,
MissingSprite,
InvalidBox,
}Expand description
Why BlockEntityDrawContext::fluid_box drew
nothing. A refused box appends no geometry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedFluid
The stack is not minecraft:water or minecraft:lava without components: an
unresolved fluid, another fluid, or one with a component patch.
MissingSprite
The loaded resources have no still sprite for the fluid.
InvalidBox
A bound is not finite or beyond 1,048,576 blocks, a minimum exceeds its maximum, the
box would tile into more than 65,536 quads, or the shrink ratio is outside 0.0..=1.0.
Trait Implementations§
§impl Clone for FluidBoxError
impl Clone for FluidBoxError
§fn clone(&self) -> FluidBoxError
fn clone(&self) -> FluidBoxError
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 FluidBoxError
§impl Debug for FluidBoxError
impl Debug for FluidBoxError
impl Eq for FluidBoxError
§impl PartialEq for FluidBoxError
impl PartialEq for FluidBoxError
impl StructuralPartialEq for FluidBoxError
Auto Trait Implementations§
impl Freeze for FluidBoxError
impl RefUnwindSafe for FluidBoxError
impl Send for FluidBoxError
impl Sync for FluidBoxError
impl Unpin for FluidBoxError
impl UnsafeUnpin for FluidBoxError
impl UnwindSafe for FluidBoxError
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