mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Added a way to get the spawn position of a world
This commit is contained in:
@ -125,6 +125,11 @@ public class NullWorld extends AbstractWorld {
|
||||
public void setWeather(WeatherType weatherType, long duration) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockVector3 getSpawnPosition() {
|
||||
return BlockVector3.ZERO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockState getBlock(BlockVector3 position) {
|
||||
return BlockTypes.AIR.getDefaultState();
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user