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
parent c949b07df1
commit ea30578781
6 changed files with 29 additions and 2 deletions

View File

@ -320,6 +320,11 @@ public abstract class SpongeWorld extends AbstractWorld {
getWorld().setWeather(Sponge.getRegistry().getType(Weather.class, weatherType.getId()).get(), duration);
}
@Override
public BlockVector3 getSpawnPosition() {
return SpongeAdapter.asBlockVector(getWorld().getSpawnLocation());
}
/**
* Thrown when the reference to the world is lost.
*/