package micdoodle8.mods.galacticraft.planets.mars.items;
import micdoodle8.mods.galacticraft.core.proxy.ClientProxyCore;
import net.minecraft.block.Block;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class ItemBlockMars extends ItemBlock
{
public ItemBlockMars(Block block)
{
super(block);
this.setMaxDamage(0);
this.setHasSubtypes(true);
}
@Override
public int getMetadata(int meta)
{
return meta;
}
@Override
@SideOnly(Side.CLIENT)
public EnumRarity getRarity(ItemStack par1ItemStack)
{
return ClientProxyCore.galacticraftItem;
}
@Override
public String getUnlocalizedName(ItemStack itemstack)
{
String name = "";
switch (itemstack.getItemDamage())
{
case 0:
{
name = "coppermars";
break;
}
case 1:
{
name = "tinmars";
break;
}
case 3:
{
name = "ironmars";
break;
}
case 2:
{
name = "deshmars";
break;
}
case 4:
{
name = "marscobblestone";
break;
}
case 5:
{
name = "marsgrass";
break;
}
case 6:
{
name = "marsdirt";
break;
}
case 7:
{
name = "marsdungeon";
break;
}
case 8:
{
name = "marsdeco";
break;
}
case 9:
{
name = "marsstone";
break;
}
default:
name = "null";
}
return this.getBlock().getUnlocalizedName() + "." + name;
}
@Override
public String getUnlocalizedName()
{
return this.getBlock().getUnlocalizedName() + ".0";
}
}