setCameraEntity

open override fun setCameraEntity(player: Player, entityId: Int)

Sets the player's camera to spectate the specified entity.

Parameters

player

The target player.

entityId

The entity ID to attach the camera to.