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

Method getChunksLowestHorizon

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

Gets the lowest height of the chunk where sunlight directly reaches

(int x, int z)

Source from the content-addressed store, hash-verified

703 * Gets the lowest height of the chunk where sunlight directly reaches
704 */
705 public int getChunksLowestHorizon(int x, int z)
706 {
707 if (x >= -30000000 && z >= -30000000 && x < 30000000 && z < 30000000)
708 {
709 if (!this.isChunkLoaded(x >> 4, z >> 4, true))
710 {
711 return 0;
712 }
713 else
714 {
715 Chunk chunk = this.getChunkFromChunkCoords(x >> 4, z >> 4);
716 return chunk.getLowestHeight();
717 }
718 }
719 else
720 {
721 return this.func_181545_F() + 1;
722 }
723 }
724
725 public int getLightFromNeighborsFor(EnumSkyBlock type, BlockPos pos)
726 {

Callers 1

recheckGapsMethod · 0.80

Calls 4

isChunkLoadedMethod · 0.95
getLowestHeightMethod · 0.95
func_181545_FMethod · 0.95

Tested by

no test coverage detected