Gets the lowest height of the chunk where sunlight directly reaches
(int x, int z)
| 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 | { |
no test coverage detected