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

Method getGroundAboveSeaLevel

src/main/java/net/minecraft/world/World.java:229–239  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

227 }
228
229 public Block getGroundAboveSeaLevel(BlockPos pos)
230 {
231 BlockPos blockpos;
232
233 for (blockpos = new BlockPos(pos.getX(), this.func_181545_F(), pos.getZ()); !this.isAirBlock(blockpos.up()); blockpos = blockpos.up())
234 {
235 ;
236 }
237
238 return this.getBlockState(blockpos).getBlock();
239 }
240
241 /**
242 * Check if the given BlockPos has valid coordinates

Callers 3

canCoordinateBeSpawnMethod · 0.80
canCoordinateBeSpawnMethod · 0.80

Calls 7

func_181545_FMethod · 0.95
isAirBlockMethod · 0.95
upMethod · 0.95
getBlockStateMethod · 0.95
getXMethod · 0.65
getZMethod · 0.65
getBlockMethod · 0.65

Tested by

no test coverage detected