Enum NeighbourUpdate
pub enum NeighbourUpdate {
OutputSignal,
Neighbours,
NeighboursExcept(Direction),
}Expand description
A neighbour update a block asks for when it is removed, each the one vanilla’s own removal
uses (Level.updateNeighborsAt, updateNeighborsAtExceptFromFacing,
updateNeighbourForOutputSignal).
Variants§
OutputSignal
Level.updateNeighbourForOutputSignal: comparators beside the position re-read.
Neighbours
Level.updateNeighborsAt: all six neighbours hear the block changed.
NeighboursExcept(Direction)
Level.updateNeighborsAtExceptFromFacing: all neighbours but the one in the direction.
Trait Implementations§
§impl Clone for NeighbourUpdate
impl Clone for NeighbourUpdate
§fn clone(&self) -> NeighbourUpdate
fn clone(&self) -> NeighbourUpdate
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 NeighbourUpdate
§impl Debug for NeighbourUpdate
impl Debug for NeighbourUpdate
impl Eq for NeighbourUpdate
§impl PartialEq for NeighbourUpdate
impl PartialEq for NeighbourUpdate
impl StructuralPartialEq for NeighbourUpdate
Auto Trait Implementations§
impl Freeze for NeighbourUpdate
impl RefUnwindSafe for NeighbourUpdate
impl Send for NeighbourUpdate
impl Sync for NeighbourUpdate
impl Unpin for NeighbourUpdate
impl UnsafeUnpin for NeighbourUpdate
impl UnwindSafe for NeighbourUpdate
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