MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getSpawnPoint

Method getSpawnPoint

src/main/java/net/minecraft/world/World.java:3425–3435  ·  view source on GitHub ↗

Gets the spawn point in the world

()

Source from the content-addressed store, hash-verified

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 {

Callers 10

isSpawnChunkMethod · 0.95
updateCompassMethod · 0.80
findChunksForSpawningMethod · 0.80
initialWorldChunkLoadMethod · 0.80
recreatePlayerEntityMethod · 0.80
transferEntityToWorldMethod · 0.80
travelToDimensionMethod · 0.80
EntityPlayerMPMethod · 0.80
EntityPlayerMethod · 0.80

Calls 8

getWorldBorderMethod · 0.95
getHeightMethod · 0.95
getSpawnXMethod · 0.45
getSpawnYMethod · 0.45
getSpawnZMethod · 0.45
containsMethod · 0.45
getCenterXMethod · 0.45
getCenterZMethod · 0.45

Tested by

no test coverage detected