TinkersConstruct/tinker/tconstruct/items/CraftedSoilItemBlock.java
2013-02-14 10:57:49 -08:00

30 lines
629 B
Java

package tinker.tconstruct.items;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class CraftedSoilItemBlock extends ItemBlock
{
public static final String blockType[] =
{
"Slime", "Grout"
};
public CraftedSoilItemBlock(int id)
{
super(id);
setMaxDamage(0);
setHasSubtypes(true);
}
public int getMetadata(int meta)
{
return meta;
}
public String getItemNameIS(ItemStack itemstack)
{
return (new StringBuilder()).append("CraftedSoil.").append(blockType[itemstack.getItemDamage()]).toString();
}
}