package gregtech.api.items; import cpw.mods.fml.common.registry.GameRegistry; import gregtech.api.util.GT_LanguageManager; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.ItemBlock; import static gregtech.api.enums.GT_Values.W; public class GT_Generic_Block extends Block { protected final String mUnlocalizedName; protected GT_Generic_Block(Class aItemClass, String aName, Material aMaterial) { super(aMaterial); setBlockName(mUnlocalizedName = aName); GameRegistry.registerBlock(this, aItemClass, getUnlocalizedName()); GT_LanguageManager.addStringLocalization(getUnlocalizedName() + "." + W + ".name", "Any Sub Block of this one"); } }