use of net.minecraft.world.gen.feature.WorldGenBigMushroom 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.WorldGenBigMushroom in project SpongeCommon by SpongePowered.
the class BigMushroomBuilder method build.
@Override
public BigMushroom build() throws IllegalStateException {
BigMushroom populator = (BigMushroom) new WorldGenBigMushroom(Blocks.BROWN_MUSHROOM);
populator.getTypes().clear();
populator.getTypes().addAll(this.types);
populator.setMushroomsPerChunk(this.count);
populator.setSupplierOverride(this.override);
return populator;
}
use of net.minecraft.world.gen.feature.WorldGenBigMushroom in project SpongeCommon by SpongePowered.
the class MushroomTypeRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
register(new SpongeMushroomType("minecraft:brown", "brown", (PopulatorObject) new WorldGenBigMushroom(Blocks.BROWN_MUSHROOM_BLOCK)));
register(new SpongeMushroomType("minecraft:red", "red", (PopulatorObject) new WorldGenBigMushroom(Blocks.RED_MUSHROOM_BLOCK)));
}
Aggregations