package micdoodle8.mods.galacticraft.planets.venus.items;
import micdoodle8.mods.galacticraft.api.item.IKeyItem;
import micdoodle8.mods.galacticraft.core.GalacticraftCore;
import micdoodle8.mods.galacticraft.core.items.ISortableItem;
import micdoodle8.mods.galacticraft.core.proxy.ClientProxyCore;
import micdoodle8.mods.galacticraft.core.util.EnumSortCategoryItem;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import java.util.List;
public class ItemKeyVenus extends Item implements IKeyItem, ISortableItem
{
public ItemKeyVenus(String name)
{
super();
this.setMaxStackSize(1);
this.setMaxDamage(0);
this.setHasSubtypes(true);
this.setUnlocalizedName(name);
}
@SideOnly(Side.CLIENT)
@Override
public CreativeTabs getCreativeTab()
{
return GalacticraftCore.galacticraftItemsTab;
}
@Override
public String getUnlocalizedName(ItemStack itemStack)
{
return "item.key.t3";
}
@Override
@SideOnly(Side.CLIENT)
public EnumRarity getRarity(ItemStack par1ItemStack)
{
return ClientProxyCore.galacticraftItem;
}
@Override
public void getSubItems(Item par1, CreativeTabs par2CreativeTabs, List<ItemStack> par3List)
{
par3List.add(new ItemStack(par1, 1, 0));
}
@Override
public int getMetadata(int par1)
{
return par1;
}
@Override
public int getTier(ItemStack keyStack)
{
return 3;
}
@Override
public EnumSortCategoryItem getCategory(int meta)
{
return EnumSortCategoryItem.KEYS;
}
}