GT5-Unofficial/src/main/java/gregtech/api/items/GT_Generic_Block.java
2015-10-21 22:06:25 -04:00

20 lines
No EOL
765 B
Java

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<? 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");
}
}