getSpectatorTarget

public abstract Entity getSpectatorTarget()

Gets the entity which is followed by the camera when in SPECTATOR.

Return

the followed entity, or null if not in spectator mode or not following getClassById specific entity.