mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
Add Player.setBedSpawnLocation(Location). Thanks md_5
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
33f366c08d
commit
0251111b0d
3 changed files with 20 additions and 0 deletions
|
@ -84,4 +84,13 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
|
||||||
* @return True if the player has played before, otherwise false
|
* @return True if the player has played before, otherwise false
|
||||||
*/
|
*/
|
||||||
public boolean hasPlayedBefore();
|
public boolean hasPlayedBefore();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -470,6 +470,13 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||||
*/
|
*/
|
||||||
public Location getBedSpawnLocation();
|
public Location getBedSpawnLocation();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the Location where the player will spawn at their bed.
|
||||||
|
*
|
||||||
|
* @param location where to set the respawn location
|
||||||
|
*/
|
||||||
|
public void setBedSpawnLocation(Location location);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines if the Player is allowed to fly via jump key double-tap like in creative mode.
|
* Determines if the Player is allowed to fly via jump key double-tap like in creative mode.
|
||||||
*
|
*
|
||||||
|
|
|
@ -605,4 +605,8 @@ public class TestPlayer implements Player {
|
||||||
public void setAllowFlight(boolean flight) {
|
public void setAllowFlight(boolean flight) {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setBedSpawnLocation(Location location) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue