for (int x0 = -12; x0 <= 12; x0++)
{
for (int z0 = -12; z0 <= 12; z0++)
{
Chunk chunk = MinecraftServer.getServer().worldServerForDimension(0).getChunkFromChunkCoords(chunkCoordIntPair.chunkXPos + x0, chunkCoordIntPair.chunkZPos + z0);
if (chunk != null)
{
for (int z = 0; z < 16; z++)
{
for (int x = 0; x < 16; x++)
{
int l4 = chunk.getHeightValue(x, z) + 1;
Block block = Blocks.air;
int i5 = 0;
if (l4 > 1)
{
do
{
--l4;
block = chunk.getBlock(x, l4, z);
i5 = chunk.getBlockMetadata(x, l4, z);
}
while (block.getMapColor(i5) == MapColor.airColor && l4 > 0);
}
int col = block.getMapColor(i5).colorValue;