1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package binnie.extrabees.worldgen;
import binnie.extrabees.ExtraBees;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManager;
import net.minecraft.world.gen.feature.WorldGenerator;
public class WorldGenHiveRock
extends WorldGenerator
{
public boolean generate(World world, Random random, int i, int j, int k)
{
BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(i, k);
Block block = world.getBlock(i, j, k);
if (block == null) {
return true;
}
if (block.isReplaceableOreGen(world, i, j, k, Blocks.stone)) {
world.setBlock(i, j, k, ExtraBees.hive, 1, 0);
}
return true;
}
}
|