referencesWorld

public boolean referencesWorld(World world)

Return

whether any reference this NPC still holds (villager, spawn location) points at the given world — used to purge tracking when that world unloads