Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.squrikle.bountifulbiomes.world.feature;
- import java.util.Random;
- import com.squrikle.bountifulbiomes.init.BlockInitNew;
- import net.minecraft.block.trees.Tree;
- import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider;
- import net.minecraft.world.gen.feature.ConfiguredFeature;
- import net.minecraft.world.gen.feature.Feature;
- import net.minecraft.world.gen.feature.TreeFeatureConfig;
- import net.minecraft.world.gen.foliageplacer.SpruceFoliagePlacer;
- import net.minecraftforge.common.IPlantable;
- public class CedarTree extends Tree {
- public static final TreeFeatureConfig CEDAR_TREE_CONFIG = (new TreeFeatureConfig.Builder(
- new SimpleBlockStateProvider(BlockInitNew.CEDAR_LOG.get().getDefaultState()),
- new SimpleBlockStateProvider(BlockInitNew.CEDAR_LEAVES.get().getDefaultState()),
- new SpruceFoliagePlacer(5, 0))).baseHeight(4).heightRandA(5).foliageHeight(5).ignoreVines()
- .setSapling((IPlantable)BlockInitNew.CEDAR_SAPLING.get()).build();
- @Override
- protected ConfiguredFeature<TreeFeatureConfig, ?> getTreeFeature(Random randomIn, boolean b) {
- return Feature.NORMAL_TREE.withConfiguration(CEDAR_TREE_CONFIG);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment