diff options
author | EvilSeph <evilseph@gmail.com> | 2011-09-20 23:32:21 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-09-20 23:41:57 -0400 |
commit | e61bc9093d4765ae25361d14f3dec7c979ba9556 (patch) | |
tree | d70bb2b1d688f949ebfbb24d35cf836fcc4bbf0d | |
parent | 2b1f4b63823a71c2139a36abf26175912b1d2793 (diff) | |
download | bukkit-e61bc9093d4765ae25361d14f3dec7c979ba9556.tar bukkit-e61bc9093d4765ae25361d14f3dec7c979ba9556.tar.gz bukkit-e61bc9093d4765ae25361d14f3dec7c979ba9556.tar.lz bukkit-e61bc9093d4765ae25361d14f3dec7c979ba9556.tar.xz bukkit-e61bc9093d4765ae25361d14f3dec7c979ba9556.zip |
Added getBedSpawnLocation to Player. Thanks fernferret!
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 91fdb4e8..dca68f2e 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -196,11 +196,11 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer { * @param 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 * when streaming the map in the normal manner is not desirbale. - * + * * @pram map The map to be sent */ 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 - * + * * @return Current experience points */ public int getExperience(); @@ -383,4 +383,11 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer { * @param value New food level */ 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(); } |