setPlayer

abstract fun setPlayer(@Nullable() player: Player)

Sets the Player instance, for which the UI acts.If a Player is already set, it will be detached before the new one is attached.Also, if {@code null} is provided, the currently attached Player will be detached.

Parameters

player

The Player that should be set.