mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
SPIGOT-436: Add accompanying getSpectatorTarget().
This commit is contained in:
parent
20de0ed871
commit
d29af24528
1 changed files with 9 additions and 0 deletions
|
@ -1037,6 +1037,15 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
||||||
*/
|
*/
|
||||||
public double getHealthScale();
|
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
|
* Sets the entity which is followed by the camera when in
|
||||||
* {@link GameMode#SPECTATOR}.
|
* {@link GameMode#SPECTATOR}.
|
||||||
|
|
Loading…
Add table
Reference in a new issue