@Override
@SuppressWarnings("rawtypes")
public String getUnlocalizedName(ItemStack itemstack) {
Block block = getBlock();
if (block instanceof IItemTyped) {
IItemTyped blockTyped = (IItemTyped)block;
Enum type = blockTyped.getTypeFromMeta(itemstack.getItemDamage());
if (type != null)
return getBlock().getUnlocalizedName() + "." + type.ordinal();
else
return null;
}