mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-436: Add accompanying getSpectatorTarget().
By: md_5 <git@md-5.net>
This commit is contained in:
parent
95a9781863
commit
dc0588c29d
1 changed files with 9 additions and 0 deletions
|
@ -1037,6 +1037,15 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
|||
*/
|
||||
public double getHealthScale();
|
||||
|
||||
/**
|
||||
* Gets the entity which is followed by the camera when in
|
||||
* {@link GameMode#SPECTATOR}.
|
||||
*
|
||||
* @return the followed entity, or null if not in spectator mode or not
|
||||
* following a specific entity.
|
||||
*/
|
||||
public Entity getSpectatorTarget();
|
||||
|
||||
/**
|
||||
* Sets the entity which is followed by the camera when in
|
||||
* {@link GameMode#SPECTATOR}.
|
||||
|
|
Loading…
Add table
Reference in a new issue