Commits

Parker Hawke authored and md_5 committed 18e9d9315b7
#543: Let World#setSpawnLocation() support an angle
No tags

src/main/java/org/bukkit/World.java

Modified
880 880 public Location getSpawnLocation();
881 881
882 882 /**
883 883 * Sets the spawn location of the world.
884 884 * <br>
885 885 * The location provided must be equal to this world.
886 886 *
887 887 * @param location The {@link Location} to set the spawn for this world at.
888 888 * @return True if it was successfully set.
889 889 */
890 - @NotNull
891 890 public boolean setSpawnLocation(@NotNull Location location);
892 891
892 + /**
893 + * Sets the spawn location of the world
894 + *
895 + * @param x X coordinate
896 + * @param y Y coordinate
897 + * @param z Z coordinate
898 + * @param angle the angle
899 + * @return True if it was successfully set.
900 + */
901 + public boolean setSpawnLocation(int x, int y, int z, float angle);
902 +
893 903 /**
894 904 * Sets the spawn location of the world
895 905 *
896 906 * @param x X coordinate
897 907 * @param y Y coordinate
898 908 * @param z Z coordinate
899 909 * @return True if it was successfully set.
900 910 */
901 911 public boolean setSpawnLocation(int x, int y, int z);
902 912

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut