31 lines
831 B
Java
31 lines
831 B
Java
package tinker.tconstruct.items;
|
|
|
|
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",
|
|
"PatternShaper", "PatternShaper", "PatternShaper", "PatternShaper", "CastingTable"
|
|
};
|
|
|
|
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();
|
|
}
|
|
}
|