Search in sources :

Example 1 with WorldGenSunkenShip

use of net.tropicraft.core.common.worldgen.WorldGenSunkenShip in project Tropicraft by Tropicraft.

the class BiomeDecoratorTropicsOcean method genDecorations.

@Override
public void genDecorations(Biome biome, World world, Random rand) {
    super.genDecorations(biome, world, rand);
    coralGen.generate(world, rand, chunkPos);
    coralReefGen.generate(world, rand, chunkPos);
    seaweedGen.generate(world, rand, chunkPos);
    manganeseGen.generate(world, rand, chunkPos);
    shakaGen.generate(world, rand, chunkPos);
    if (GenRates.SHIPWRECK_CHANCE != 0 && rand.nextInt(GenRates.SHIPWRECK_CHANCE) == 0) {
        int i = randDecorationCoord(rand, chunkPos.getX(), 16);
        int k = randDecorationCoord(rand, chunkPos.getZ(), 16);
        new WorldGenSunkenShip(world, rand).generate(new BlockPos(i, getTerrainHeightAt(world, i, k), k));
    }
    if (rand.nextInt(TREASURE_CHANCE) == 0) {
        int i = randDecorationCoord(rand, chunkPos.getX(), 12);
        int k = randDecorationCoord(rand, chunkPos.getZ(), 12);
        new WorldGenTropicsTreasure(world, rand).generate(world, rand, new BlockPos(i, getTerrainHeightAt(world, i, k), k));
    }
}
Also used : WorldGenSunkenShip(net.tropicraft.core.common.worldgen.WorldGenSunkenShip) WorldGenTropicsTreasure(net.tropicraft.core.common.worldgen.WorldGenTropicsTreasure) BlockPos(net.minecraft.util.math.BlockPos)

Aggregations

BlockPos (net.minecraft.util.math.BlockPos)1 WorldGenSunkenShip (net.tropicraft.core.common.worldgen.WorldGenSunkenShip)1 WorldGenTropicsTreasure (net.tropicraft.core.common.worldgen.WorldGenTropicsTreasure)1