mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
#966: Introduce getRespawnLocation as a replacement for getBedSpawnLocation
By: Nothixal <nothixal@gmail.com>
This commit is contained in:
@@ -171,10 +171,24 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
|
||||
* they have not slept in one or their current bed spawn is invalid.
|
||||
*
|
||||
* @return Bed Spawn Location if bed exists, otherwise null.
|
||||
*
|
||||
* @see #getRespawnLocation()
|
||||
* @deprecated Misleading name. This method also returns the location of
|
||||
* respawn anchors.
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public Location getBedSpawnLocation();
|
||||
|
||||
/**
|
||||
* Gets the Location where the player will spawn at, null if they
|
||||
* don't have a valid respawn point.
|
||||
*
|
||||
* @return respawn location if exists, otherwise null.
|
||||
*/
|
||||
@Nullable
|
||||
public Location getRespawnLocation();
|
||||
|
||||
/**
|
||||
* Increments the given statistic for this player.
|
||||
* <p>
|
||||
|
Reference in New Issue
Block a user