package de.TheJulianJES.UtilsPlus.Blocks;

import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import de.TheJulianJES.UtilsPlus.lib.StringNames;

public class ItemBlockDeco extends ItemBlock {

	public ItemBlockDeco(Block block) {
		super(block);
		this.setHasSubtypes(true);
	}

	@Override
	public int getMetadata(int meta) {
		return meta;
	}

	@Override
	public String getUnlocalizedName(ItemStack itemStack) {
		int metaData = itemStack.getItemDamage();

		return String.format("tile.%s%s", StringNames.MODID.toLowerCase() + ":", "deco." + metaData);
	}
}