mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
SPIGOT-436: Add accompanying getSpectatorTarget().
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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}.
|
||||
|
Reference in New Issue
Block a user