Search in sources :

Example 1 with WorldGenElderMushroom

use of nex.world.gen.feature.WorldGenElderMushroom in project NetherEx by LogicTechCorp.

the class BlockElderMushroom method grow.

@Override
public void grow(World world, Random rand, BlockPos pos, IBlockState state) {
    WorldGenerator elderMushroom;
    if (state.getValue(TYPE) == EnumType.BROWN) {
        elderMushroom = new WorldGenElderMushroom(WorldGenElderMushroom.brownVariants, false);
    } else {
        elderMushroom = new WorldGenElderMushroom(WorldGenElderMushroom.redVariants, false);
    }
    elderMushroom.generate(world, rand, pos.down());
}
Also used : WorldGenerator(net.minecraft.world.gen.feature.WorldGenerator) WorldGenElderMushroom(nex.world.gen.feature.WorldGenElderMushroom)

Aggregations

WorldGenerator (net.minecraft.world.gen.feature.WorldGenerator)1 WorldGenElderMushroom (nex.world.gen.feature.WorldGenElderMushroom)1