setSpectatorTarget

public abstract void setSpectatorTarget(Entity entity)

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

Parameters

entity

the entity to follow or null to reset

Throws

if the player is not in SPECTATOR