Class CompanionSpawnerMarkerReference

java.lang.Object
com.hypixel.hytale.builtin.companionblockspawner.CompanionSpawnerMarkerReference
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class CompanionSpawnerMarkerReference extends Object implements Component<EntityStore>
A back-reference placed on the spawn marker created by a CompanionBlockSpawnerBlock, pointing at the world position of the owning spawner block. CompanionBlockSpawnerSystems.MarkerHeartbeat uses it to self-remove markers whose origin spawner no longer exists or no longer references them (e.g. the spawner was broken while the marker's chunk was unloaded), so orphaned markers can't keep respawning companions forever. While the origin chunk is unloaded the marker trusts it (waits) - removal only happens on loaded, contradicting evidence.