Class CompanionBlockSpawnerSystems.MarkerHeartbeat

All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
Enclosing class:
CompanionBlockSpawnerSystems

public static class CompanionBlockSpawnerSystems.MarkerHeartbeat extends EntityTickingSystem<EntityStore>
Entity-store counterpart of the spawner-side liveness check: a marker created by a companion spawner removes itself (and its companions) when its origin spawner block no longer exists or no longer references it - so a spawner broken while the marker's chunk was unloaded can't leave an orphaned marker respawning NPCs forever. Modelled on SpawnMarkerBlockStateSystems.SpawnMarkerTickHeartbeat, with one deliberate difference: while the origin chunk is unloaded the marker trusts it and waits indefinitely (no removal timeout) - removal only happens on loaded, contradicting evidence.