mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#543: Let World#setSpawnLocation() support an angle
This commit is contained in:
parent
bf0015ebb3
commit
18e9d9315b
1 changed files with 11 additions and 1 deletions
|
@ -887,9 +887,19 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|||
* @param location The {@link Location} to set the spawn for this world at.
|
||||
* @return True if it was successfully set.
|
||||
*/
|
||||
@NotNull
|
||||
public boolean setSpawnLocation(@NotNull Location location);
|
||||
|
||||
/**
|
||||
* Sets the spawn location of the world
|
||||
*
|
||||
* @param x X coordinate
|
||||
* @param y Y coordinate
|
||||
* @param z Z coordinate
|
||||
* @param angle the angle
|
||||
* @return True if it was successfully set.
|
||||
*/
|
||||
public boolean setSpawnLocation(int x, int y, int z, float angle);
|
||||
|
||||
/**
|
||||
* Sets the spawn location of the world
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue