Search in sources :

Example 11 with WorldGenAbstractTree

use of net.minecraft.world.gen.feature.WorldGenAbstractTree in project Minestuck by mraof.

the class TreeDecoratorBase method generate.

@Override
public BlockPos generate(World world, Random random, BlockPos pos, ChunkProviderLands provider) {
    pos = world.getHeight(pos);
    WorldGenAbstractTree gen = getTreeToGenerate(world, pos, random);
    if (gen.generate(world, random, pos))
        gen.generateSaplings(world, random, pos);
    return null;
}
Also used : WorldGenAbstractTree(net.minecraft.world.gen.feature.WorldGenAbstractTree)

Example 12 with WorldGenAbstractTree

use of net.minecraft.world.gen.feature.WorldGenAbstractTree in project takumicraft by TNTModders.

the class EntityNaturalCreeper method takumiExplode.

@Override
public void takumiExplode() {
    if (!this.world.isRemote) {
        this.world.createExplosion(this, this.posX, this.posY, this.posZ, this.getPowered() ? 6 : 3, false);
        WorldGenAbstractTree tree = this.getPowered() ? new TakumiWorldGenBigTree(true, TakumiBlockCore.GUNORE.getDefaultState(), TakumiBlockCore.CREEPER_BOMB.getDefaultState()) : new TakumiWorldGenTrees(true, false, TakumiBlockCore.GUNORE.getDefaultState(), TakumiBlockCore.CREEPER_BOMB.getDefaultState());
        tree.generate(this.world, this.rand, new BlockPos(this));
    }
}
Also used : TakumiWorldGenTrees(com.tntmodders.takumi.world.gen.TakumiWorldGenTrees) WorldGenAbstractTree(net.minecraft.world.gen.feature.WorldGenAbstractTree) TakumiWorldGenBigTree(com.tntmodders.takumi.world.gen.TakumiWorldGenBigTree) BlockPos(net.minecraft.util.math.BlockPos)

Aggregations

WorldGenAbstractTree (net.minecraft.world.gen.feature.WorldGenAbstractTree)12 BlockPos (net.minecraft.util.math.BlockPos)9 TakumiWorldGenBigTree (com.tntmodders.takumi.world.gen.TakumiWorldGenBigTree)2 TakumiWorldGenTrees (com.tntmodders.takumi.world.gen.TakumiWorldGenTrees)2 IBlockState (net.minecraft.block.state.IBlockState)2 WorldGenDeadBush (net.minecraft.world.gen.feature.WorldGenDeadBush)2 BiomeMP (stevekung.mods.moreplanets.utils.world.gen.biome.BiomeMP)2 WorldGenDoublePlantMP (stevekung.mods.moreplanets.utils.world.gen.feature.WorldGenDoublePlantMP)2 WorldGenFlowersBase (stevekung.mods.stevekunglib.world.gen.WorldGenFlowersBase)2 WorldGenBirchTreePerverted (cavern.world.gen.WorldGenBirchTreePerverted)1 WorldGenSpruceTreePerverted (cavern.world.gen.WorldGenSpruceTreePerverted)1 WorldGenTreesPerverted (cavern.world.gen.WorldGenTreesPerverted)1 Calendar (java.util.Calendar)1 Biome (net.minecraft.world.biome.Biome)1 BiomeDecorator (net.minecraft.world.biome.BiomeDecorator)1 WorldGenDesertWells (net.minecraft.world.gen.feature.WorldGenDesertWells)1 WorldGenFossils (net.minecraft.world.gen.feature.WorldGenFossils)1 DecorateBiomeEvent (net.minecraftforge.event.terraingen.DecorateBiomeEvent)1 OreGenEvent (net.minecraftforge.event.terraingen.OreGenEvent)1 WorldGenInfectedVinesDirt (stevekung.mods.moreplanets.module.planets.nibiru.world.gen.feature.WorldGenInfectedVinesDirt)1