GT5-Unofficial/src/main/java/gregtech/api/items/GT_Generic_Block.java

19 lines
730 B
Java
Raw Normal View History

2015-04-23 16:14:22 +00:00
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");
}
}