use of net.minecraft.world.gen.feature.WorldGenCanopyTree in project SpongeCommon by SpongePowered.
the class PopulatorObjectRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
// Populators
register(new WorldGenDesertWells());
// Trees
register(new WorldGenTrees(false));
register(new WorldGenBigTree(false));
register(new WorldGenBirchTree(false, false));
register(new WorldGenBirchTree(false, true));
register(new WorldGenTaiga2(false));
register(new WorldGenTaiga1());
register(new WorldGenMegaPineTree(false, true));
register(new WorldGenMegaPineTree(false, false));
IBlockState jlog = Blocks.LOG.getDefaultState().withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.JUNGLE);
IBlockState jleaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE).withProperty(BlockLeaves.CHECK_DECAY, Boolean.valueOf(false));
IBlockState leaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE).withProperty(BlockLeaves.CHECK_DECAY, Boolean.valueOf(false));
IWorldGenTrees trees = (IWorldGenTrees) new WorldGenTrees(false, 4, jlog, jleaf, true);
trees.setId("minecraft:jungle");
trees.setName("Jungle tree");
trees.setMinHeight(VariableAmount.baseWithRandomAddition(4, 7));
register((WorldGenTrees) trees);
register(new WorldGenMegaJungle(false, 10, 20, jlog, jleaf));
WorldGenShrub bush = new WorldGenShrub(jlog, leaf);
register(bush);
register(new WorldGenSavannaTree(false));
register(new WorldGenCanopyTree(false));
register(new WorldGenSwamp());
// Mushrooms
register(new WorldGenBigMushroom(Blocks.BROWN_MUSHROOM_BLOCK));
register(new WorldGenBigMushroom(Blocks.RED_MUSHROOM_BLOCK));
}
use of net.minecraft.world.gen.feature.WorldGenCanopyTree in project SpongeCommon by SpongePowered.
the class BiomeTreeTypeRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
register(create("oak", new WorldGenTrees(false), new WorldGenBigTree(false)));
register(create("birch", new WorldGenBirchTree(false, false), new WorldGenBirchTree(false, true)));
WorldGenMegaPineTree tall_megapine = new WorldGenMegaPineTree(false, true);
WorldGenMegaPineTree megapine = new WorldGenMegaPineTree(false, false);
register(create("tall_taiga", new WorldGenTaiga2(false), tall_megapine));
register(create("pointy_taiga", new WorldGenTaiga1(), megapine));
IBlockState jlog = Blocks.LOG.getDefaultState().withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.JUNGLE);
IBlockState jleaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE).withProperty(BlockLeaves.CHECK_DECAY, Boolean.valueOf(false));
IBlockState leaf = Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.JUNGLE).withProperty(BlockLeaves.CHECK_DECAY, Boolean.valueOf(false));
IWorldGenTrees trees = (IWorldGenTrees) new WorldGenTrees(false, 4, jlog, jleaf, true);
trees.setMinHeight(VariableAmount.baseWithRandomAddition(4, 7));
WorldGenMegaJungle mega = new WorldGenMegaJungle(false, 10, 20, jlog, jleaf);
register(create("jungle", (WorldGenTrees) trees, mega));
WorldGenShrub bush = new WorldGenShrub(jlog, leaf);
register(create("jungle_bush", bush, null));
register(create("savanna", new WorldGenSavannaTree(false), null));
register(create("canopy", new WorldGenCanopyTree(false), null));
register(create("swamp", new WorldGenSwamp(), null));
}
Aggregations