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