Struct Falling
#[non_exhaustive]pub struct Falling {
pub drop_item: bool,
pub hurts: bool,
}Expand description
What a mod’s falling block does when it lands and when it hits.
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.drop_item: boolFallingBlockEntity.dropItem: whether it drops as an item where it
can’t be placed.
hurts: boolFallingBlockEntity.hurtEntities, at 2 a block fallen and at most 40,
an anvil’s.
Trait Implementations§
impl Copy for Falling
impl Eq for Falling
impl StructuralPartialEq for Falling
Auto Trait Implementations§
impl Freeze for Falling
impl RefUnwindSafe for Falling
impl Send for Falling
impl Sync for Falling
impl Unpin for Falling
impl UnsafeUnpin for Falling
impl UnwindSafe for Falling
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