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

20 lines
765 B
Java
Raw Normal View History

2015-04-23 16:14:22 +00:00
package gregtech.api.items;
2015-10-22 02:06:25 +00:00
import cpw.mods.fml.common.registry.GameRegistry;
2015-04-23 16:14:22 +00:00
import gregtech.api.util.GT_LanguageManager;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemBlock;
2015-10-22 02:06:25 +00:00
import static gregtech.api.enums.GT_Values.W;
2015-04-23 16:14:22 +00:00
public class GT_Generic_Block extends Block {
2015-10-22 02:06:25 +00:00
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");
}
2015-04-23 16:14:22 +00:00
}