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

@ -404,6 +404,11 @@ public class BukkitWorld extends AbstractWorld {
}
}
@Override
public BlockVector3 getSpawnPosition() {
return BukkitAdapter.asBlockVector(getWorld().getSpawnLocation());
}
@Override
public void simulateBlockMine(BlockVector3 pt) {
getWorld().getBlockAt(pt.getBlockX(), pt.getBlockY(), pt.getBlockZ()).breakNaturally();