pub struct EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> {
pub movement: Movement,
pub self_movement: SelfMovement,
pub entity_data: EntityData,
pub attributes: Attributes,
pub mob_effects: MobEffects,
pub equipment: Equipment,
pub passengers: Passengers,
pub entity_link: EntityLink,
}Expand description
Packet sinks used by EntityTracker::send_changes.
Fields§
§movement: MovementBroadcasts movement and velocity sync packets.
self_movement: SelfMovementSends vanilla self-inclusive hurt motion sync to one player.
entity_data: EntityDataBroadcasts entity data watcher changes.
attributes: AttributesBroadcasts dirty syncable attributes.
mob_effects: MobEffectsSends mob-effect add/remove packets to a specific player.
equipment: EquipmentBroadcasts dirty equipment slots.
passengers: PassengersSends passenger updates to a specific player.
entity_link: EntityLinkBroadcasts leash/link holder updates.
Auto Trait Implementations§
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> Freeze for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> RefUnwindSafe for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>where
Movement: RefUnwindSafe,
SelfMovement: RefUnwindSafe,
EntityData: RefUnwindSafe,
Attributes: RefUnwindSafe,
MobEffects: RefUnwindSafe,
Equipment: RefUnwindSafe,
Passengers: RefUnwindSafe,
EntityLink: RefUnwindSafe,
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> Send for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> Sync for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> Unpin for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> UnsafeUnpin for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>where
Movement: UnsafeUnpin,
SelfMovement: UnsafeUnpin,
EntityData: UnsafeUnpin,
Attributes: UnsafeUnpin,
MobEffects: UnsafeUnpin,
Equipment: UnsafeUnpin,
Passengers: UnsafeUnpin,
EntityLink: UnsafeUnpin,
impl<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink> UnwindSafe for EntityChangeSenders<Movement, SelfMovement, EntityData, Attributes, MobEffects, Equipment, Passengers, EntityLink>where
Movement: UnwindSafe,
SelfMovement: UnwindSafe,
EntityData: UnwindSafe,
Attributes: UnwindSafe,
MobEffects: UnwindSafe,
Equipment: UnwindSafe,
Passengers: UnwindSafe,
EntityLink: UnwindSafe,
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<>>