pub(in world) struct CollectingNeighborUpdater {
max_chained_neighbor_updates: i32,
state: SyncMutex<CollectingState<NeighborUpdate>>,
}Fields§
§max_chained_neighbor_updates: i32§state: SyncMutex<CollectingState<NeighborUpdate>>Implementations§
Source§impl CollectingNeighborUpdater
impl CollectingNeighborUpdater
pub(in world) fn new( max_chained_neighbor_updates: i32, ) -> Self
pub(in world) fn shape_update( &self, world: &Arc<World>, update: ShapeUpdate, )
pub(in world) fn neighbor_changed( &self, world: &Arc<World>, pos: BlockPos, source_block: BlockRef, )
pub(in world) fn neighbor_changed_with_state( &self, world: &Arc<World>, state: BlockStateId, pos: BlockPos, source_block: BlockRef, moved_by_piston: bool, )
pub(in world) fn update_neighbors_at_except_from_facing( &self, world: &Arc<World>, pos: BlockPos, source_block: BlockRef, skip_direction: Option<Direction>, )
fn add_and_run(&self, world: &Arc<World>, pos: BlockPos, update: NeighborUpdate)
fn run_updates(&self, world: &Arc<World>)
fn reset(&self)
Auto Trait Implementations§
impl !Freeze for CollectingNeighborUpdater
impl !RefUnwindSafe for CollectingNeighborUpdater
impl !UnwindSafe for CollectingNeighborUpdater
impl Send for CollectingNeighborUpdater
impl Sync for CollectingNeighborUpdater
impl Unpin for CollectingNeighborUpdater
impl UnsafeUnpin for CollectingNeighborUpdater
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>