aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/items/GTGenericBlock.java
blob: 314849e8cfdb5f968f1e3fada43662c20833663e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package gregtech.api.items;

import static gregtech.api.enums.GTValues.W;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemBlock;

import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.util.GTLanguageManager;

public class GTGenericBlock extends Block {

    protected final String mUnlocalizedName;

    protected GTGenericBlock(Class<? extends ItemBlock> aItemClass, String aName, Material aMaterial) {
        super(aMaterial);
        setBlockName(mUnlocalizedName = aName);
        GameRegistry.registerBlock(this, aItemClass, getUnlocalizedName());
        GTLanguageManager.addStringLocalization(getUnlocalizedName() + "." + W + ".name", "Any Sub Block of this one");
    }
}