package com.raphydaphy.vitality.block;

import com.raphydaphy.vitality.init.Reference;
import com.raphydaphy.vitality.util.registry.IRegisterable;
import com.raphydaphy.vitality.util.registry.RegistryHelper;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class BlockBase extends Block implements IRegisterable {

	/*
	 * Constructor for BlockBase, accepts a Material and String material is the
	 * type of block, such as ROCK or WOOD name is the unlocalized name of the
	 * block, such as tin_ore
	 */
	public BlockBase(Material material, String name, boolean registerTab) {
		super(material);
		if (registerTab)
			this.setCreativeTab(Reference.creativeTab);
		setUnlocalizedName(Reference.MOD_ID + "." + name);
		setRegistryName(name);
		GameRegistry.register(this);
		GameRegistry.register(new ItemBlock(this), getRegistryName());
	}

	public BlockBase(Material material, String name) {
		this(material, name, true);
	}

	@Override
	public void registerModels() {
		RegistryHelper.setModelLoc(this);
	}

}
@@ -703,20 +703,48 @@
 isterTab
+, boolean hasCustomItemBlock
 ) %7B%0A
-
 %09%09super(
@@ -927,24 +927,48 @@
 er(this);%0A%09%09
+if(!hasCustomItemBlock) 
 GameRegistry
@@ -1022,16 +1022,137 @@
 ));%0A%09%7D%0A%0A
+%09public BlockBase(Material material, String name, boolean registerTab)%7B%0A%09%09this(material, name, registerTab, false);%0A%09%7D%0A%09%0A
 %09public 

add gud constructor