mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Added getBedSpawnLocation to Player. Thanks fernferret!
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
cc09f73499
commit
0ca32ac525
1 changed files with 10 additions and 3 deletions
|
@ -196,11 +196,11 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer {
|
||||||
* @param data
|
* @param data
|
||||||
*/
|
*/
|
||||||
public void sendBlockChange(Location loc, int material, byte data);
|
public void sendBlockChange(Location loc, int material, byte data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render a map and send it to the player in its entirety. This may be used
|
* Render a map and send it to the player in its entirety. This may be used
|
||||||
* when streaming the map in the normal manner is not desirbale.
|
* when streaming the map in the normal manner is not desirbale.
|
||||||
*
|
*
|
||||||
* @pram map The map to be sent
|
* @pram map The map to be sent
|
||||||
*/
|
*/
|
||||||
public void sendMap(MapView map);
|
public void sendMap(MapView map);
|
||||||
|
@ -295,7 +295,7 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the players current experience points towards the next level
|
* Gets the players current experience points towards the next level
|
||||||
*
|
*
|
||||||
* @return Current experience points
|
* @return Current experience points
|
||||||
*/
|
*/
|
||||||
public int getExperience();
|
public int getExperience();
|
||||||
|
@ -383,4 +383,11 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer {
|
||||||
* @param value New food level
|
* @param value New food level
|
||||||
*/
|
*/
|
||||||
public void setFoodLevel(int value);
|
public void setFoodLevel(int value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
|
||||||
|
*
|
||||||
|
* @return Bed Spawn Location if bed exists, otherwise null.
|
||||||
|
*/
|
||||||
|
public Location getBedSpawnLocation();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue