package net.minecraft.server; import java.util.Random; public class WorldGenFlowers extends WorldGenerator { private int a; public WorldGenFlowers(int i) { this.a = i; } public boolean a(World world, Random random, int i, int j, int k) { for (int l = 0; l < 64; ++l) { int i1 = i + random.nextInt(8) - random.nextInt(8); int j1 = j + random.nextInt(4) - random.nextInt(4); int k1 = k + random.nextInt(8) - random.nextInt(8); if (world.isEmpty(i1, j1, k1) && ((BlockFlower) Block.byId[this.a]).f(world, i1, j1, k1)) { world.setRawTypeId(i1, j1, k1, this.a); } } return true; } }