Gets the spawn point in the world
()
| 3423 | * Gets the spawn point in the world |
| 3424 | */ |
| 3425 | public BlockPos getSpawnPoint() |
| 3426 | { |
| 3427 | BlockPos blockpos = new BlockPos(this.worldInfo.getSpawnX(), this.worldInfo.getSpawnY(), this.worldInfo.getSpawnZ()); |
| 3428 | |
| 3429 | if (!this.getWorldBorder().contains(blockpos)) |
| 3430 | { |
| 3431 | blockpos = this.getHeight(new BlockPos(this.getWorldBorder().getCenterX(), 0.0D, this.getWorldBorder().getCenterZ())); |
| 3432 | } |
| 3433 | |
| 3434 | return blockpos; |
| 3435 | } |
| 3436 | |
| 3437 | public void setSpawnPoint(BlockPos pos) |
| 3438 | { |
no test coverage detected