Struct UpdateShapeEvent
pub struct UpdateShapeEvent {
pub dimension: Dimension,
pub pos: BlockPos,
pub state: BlockState,
pub direction: Direction,
pub neighbour_pos: BlockPos,
pub neighbour: BlockState,
}Expand description
What BlockPart::update_shape 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§direction: Direction§neighbour_pos: BlockPos§neighbour: BlockStateTrait Implementations§
Auto Trait Implementations§
impl Freeze for UpdateShapeEvent
impl RefUnwindSafe for UpdateShapeEvent
impl Send for UpdateShapeEvent
impl Sync for UpdateShapeEvent
impl Unpin for UpdateShapeEvent
impl UnsafeUnpin for UpdateShapeEvent
impl UnwindSafe for UpdateShapeEvent
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