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;
}
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));
}
}
Aggregations