TinkersConstruct/tinker/tconstruct/blocks/ToolStationItemBlock.java
2013-01-18 23:43:53 -08:00

30 lines
751 B
Java

package tinker.tconstruct.blocks;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class ToolStationItemBlock extends ItemBlock
{
public static final String blockType[] =
{
"Crafter", "Parts", "Parts", "Parts", "Parts", "PatternChest", "PatternChest", "PatternChest", "PatternChest", "PatternChest", "Smeltery"
};
public ToolStationItemBlock(int id)
{
super(id);
setMaxDamage(0);
setHasSubtypes(true);
}
public int getMetadata(int meta)
{
return meta;
}
public String getItemNameIS(ItemStack itemstack)
{
return (new StringBuilder()).append("ToolStation.").append(blockType[itemstack.getItemDamage()]).toString();
}
}