BloodMagic/BM_src/WayofTime/alchemicalWizardry/common/items/BloodShard.java

74 lines
1.9 KiB
Java
Raw Normal View History

2014-01-17 19:12:49 +00:00
package WayofTime.alchemicalWizardry.common.items;
2014-01-17 21:54:16 +00:00
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
2014-01-17 21:54:58 +00:00
import WayofTime.alchemicalWizardry.ModItems;
import WayofTime.alchemicalWizardry.common.ArmourUpgrade;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
2014-01-17 19:12:49 +00:00
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
2014-01-17 21:43:13 +00:00
public class BloodShard extends Item implements ArmourUpgrade
{
2014-01-17 19:12:49 +00:00
public BloodShard(int par1)
{
super(par1);
this.maxStackSize = 64;
//setEnergyUsed(100);
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister)
{
if (this.itemID == ModItems.weakBloodShard.itemID)
2014-01-17 19:12:49 +00:00
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:WeakBloodShard");
return;
}
if (this.itemID == ModItems.demonBloodShard.itemID)
2014-01-17 19:12:49 +00:00
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:DemonBloodShard");
return;
}
}
public int getBloodShardLevel()
{
if (this.itemID == ModItems.weakBloodShard.itemID)
2014-01-17 19:12:49 +00:00
{
return 1;
} else if (this.itemID == ModItems.demonBloodShard.itemID)
2014-01-17 19:12:49 +00:00
{
return 2;
}
return 0;
}
@Override
public void onArmourUpdate(World world, EntityPlayer player, ItemStack thisItemStack)
{
// TODO Auto-generated method stub
}
@Override
public boolean isUpgrade()
{
// TODO Auto-generated method stub
return false;
}
@Override
public int getEnergyForTenSeconds()
{
// TODO Auto-generated method stub
return 0;
}
}