Enum LandingWrite
pub enum LandingWrite {
SetBlock(BlockState),
DestroyBlock {
drop: bool,
},
}Expand description
A write at the block an entity landed on (Block.fallOn).
The complete callback output is checked before it enters the level’s queue. If any requested state is invalid, none of that callback’s writes or sibling outputs commit. Once the entity batch has ticked, writes apply in request order only if the block still matches the original landed state. That guard is checked once for the batch, not between writes (a preceding write may itself change the block).
Variants§
SetBlock(BlockState)
Level.setBlockAndUpdate(pos, state), notifying neighbors and clients.
DestroyBlock
Level.destroyBlock(pos, drop), with or without resource drops.
Trait Implementations§
§impl Clone for LandingWrite
impl Clone for LandingWrite
§fn clone(&self) -> LandingWrite
fn clone(&self) -> LandingWrite
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 LandingWrite
§impl Debug for LandingWrite
impl Debug for LandingWrite
impl Eq for LandingWrite
§impl PartialEq for LandingWrite
impl PartialEq for LandingWrite
impl StructuralPartialEq for LandingWrite
Auto Trait Implementations§
impl Freeze for LandingWrite
impl RefUnwindSafe for LandingWrite
impl Send for LandingWrite
impl Sync for LandingWrite
impl Unpin for LandingWrite
impl UnsafeUnpin for LandingWrite
impl UnwindSafe for LandingWrite
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