Struct ConnectsToEvent
pub struct ConnectsToEvent {
pub dimension: Dimension,
pub pos: BlockPos,
pub state: BlockState,
pub kind: ConnectionKind,
pub neighbour: BlockState,
pub direction: Direction,
pub face_solid: bool,
pub connected: bool,
}Expand description
What BlockPart::connects_to 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§kind: ConnectionKind§neighbour: BlockState§direction: Direction§face_solid: bool§connected: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectsToEvent
impl RefUnwindSafe for ConnectsToEvent
impl Send for ConnectsToEvent
impl Sync for ConnectsToEvent
impl Unpin for ConnectsToEvent
impl UnsafeUnpin for ConnectsToEvent
impl UnwindSafe for ConnectsToEvent
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