public void addColumn(Chunk chunk) { int x = com.chunkmapper.math.Matthewmatics.mod(absx, 16); int z = com.chunkmapper.math.Matthewmatics.mod(absz, 16); chunk.Blocks[0][z][x] = Block.Bedrock.val; chunk.Blocks[1][z][x] = Block.Sand.val; chunk.Blocks[2][z][x] = Block.Water.val; chunk.Blocks[3][z][x] = Block.Water.val; for (int i = 4; i < 256; i++) { chunk.Blocks[i][z][x] = 0; } }
public void addColumn(Chunk chunk) { int x = com.chunkmapper.math.Matthewmatics.mod(absx, 16); int z = com.chunkmapper.math.Matthewmatics.mod(absz, 16); chunk.Blocks[h - 3][z][x] = Block.Dirt.val; chunk.Blocks[h - 2][z][x] = Block.Dirt.val; if (hasWater) { chunk.Blocks[h - 1][z][x] = Block.Water.val; } else { chunk.Blocks[h - 1][z][x] = Block.Grass.val; int i = RANDOM.nextInt(3); if (i > 0) { chunk.Blocks[h][z][x] = Block.Long_Grass.val; chunk.Data[h][z][x] = i == 1 ? DataSource.Fern.val : DataSource.Long_Grass.val; } } }