Struct OnNeighborChangeEvent
pub struct OnNeighborChangeEvent {
pub dimension: Dimension,
pub pos: BlockPos,
pub state: BlockState,
pub neighbor: BlockPos,
}Expand description
What BlockPart::on_neighbor_change is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§dimension: Dimension§pos: BlockPos§state: BlockState§neighbor: BlockPosTrait Implementations§
Auto Trait Implementations§
impl Freeze for OnNeighborChangeEvent
impl RefUnwindSafe for OnNeighborChangeEvent
impl Send for OnNeighborChangeEvent
impl Sync for OnNeighborChangeEvent
impl Unpin for OnNeighborChangeEvent
impl UnsafeUnpin for OnNeighborChangeEvent
impl UnwindSafe for OnNeighborChangeEvent
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