2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.items;
|
|
|
|
|
|
|
|
import biomesoplenty.BiomesOPlenty;
|
2013-05-24 10:00:34 +00:00
|
|
|
import biomesoplenty.api.Items;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
import net.minecraft.item.EnumToolMaterial;
|
|
|
|
import net.minecraft.item.ItemAxe;
|
2013-05-24 10:00:34 +00:00
|
|
|
import net.minecraft.item.ItemStack;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public class ItemBOPAxe extends ItemAxe
|
|
|
|
{
|
|
|
|
public int TextureID = 0;
|
|
|
|
|
|
|
|
public ItemBOPAxe(int par1, EnumToolMaterial par2, int texture)
|
|
|
|
{
|
|
|
|
super(par1, par2);
|
|
|
|
TextureID = texture;
|
|
|
|
setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
|
|
|
|
}
|
|
|
|
|
2013-05-24 10:00:34 +00:00
|
|
|
@Override
|
|
|
|
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
|
|
|
|
{
|
|
|
|
if (TextureID == 1 && par2ItemStack.itemID == Items.miscItems.get().itemID && par2ItemStack.getItemDamage() == 2)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
public void registerIcons(IconRegister iconRegister)
|
|
|
|
{
|
|
|
|
if(TextureID==0){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudaxe"); }
|
|
|
|
else if(TextureID==1){ itemIcon = iconRegister.registerIcon("BiomesOPlenty:amethystaxe"); }
|
|
|
|
else { itemIcon = iconRegister.registerIcon("BiomesOPlenty:mudball"); }
|
|
|
|
}
|
|
|
|
}
|