for (int group = 0; group < enableds.length; ++group) {
if (!enableds[group])
continue;
final BlockCustomFlower block = new BlockCustomFlower(group, Material.plants);
block.setBlockName("extrabiomes.flower").setTickRandomly(true).setHardness(0.0F).setStepSound(Block.soundTypeGrass).setCreativeTab(Extrabiomes.tabsEBXL);
proxy.registerBlock(block, extrabiomes.items.ItemFlower.class, "flower" + (group + 1));
Collection<BlockType> types = block.getGroupTypes();
for (BlockType type : types) {
final Element element;
try {
element = Element.valueOf(type.name());
} catch (Exception e) {