pub fn sync_dirty_mob_effects<T>(
living_base: &LivingEntityBase,
entity_data: &SyncMutex<T>,
) -> Option<MobEffectDisplayState>Expand description
Pushes newly dirty mob-effect state into a living entity’s synced data.
Every mob does this before its data is sent, so it lives here rather than being
restated per species. Returns the resolved display state when something was dirty,
so a caller that syncs further flags from it need not repeat the dirty check, and
None when there was nothing to publish.