19 lines
No EOL
730 B
Java
19 lines
No EOL
730 B
Java
package gregtech.api.items;
|
|
|
|
import static gregtech.api.enums.GT_Values.W;
|
|
import gregtech.api.util.GT_LanguageManager;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.item.ItemBlock;
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
|
|
|
public class GT_Generic_Block extends Block {
|
|
protected final String mUnlocalizedName;
|
|
|
|
protected GT_Generic_Block(Class<? extends ItemBlock> 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");
|
|
}
|
|
} |