mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
Tankard
This commit is contained in:
1 parent
933bad8340
commit
52efa99d34
18 files changed
+599
-128
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package tinker.tconstruct.items;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class MetalOreItemBlock extends ItemBlock
|
||||
{
|
||||
public static final String blockType[] =
|
||||
{
|
||||
"NetherSlag", "Cobalt", "Ardite", "Copper", "Tin", "Aluminum", "Slag"
|
||||
};
|
||||
|
||||
public MetalOreItemBlock(int id)
|
||||
{
|
||||
super(id);
|
||||
setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
public int getMetadata(int meta)
|
||||
{
|
||||
return meta;
|
||||
}
|
||||
|
||||
public String getItemNameIS(ItemStack itemstack)
|
||||
{
|
||||
return (new StringBuilder()).append("MetalOre.").append(blockType[itemstack.getItemDamage()]).toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user