Added a way to get the spawn position of a world

This commit is contained in:
Matthew Miller
2018-12-21 17:05:30 +10:00
committed by IronApollo
parent c935e381b7
commit 9c3964d330
6 changed files with 29 additions and 2 deletions

View File

@ -246,6 +246,13 @@ public interface World extends Extent {
*/
void setWeather(WeatherType weatherType, long duration);
/**
* Gets the spawn position of this world.
*
* @return The spawn position
*/
BlockVector3 getSpawnPosition();
@Override
boolean equals(Object other);