2013-08-27 00:49:32 +02:00
|
|
|
package mekanism.tools.item;
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2012-11-15 21:04:12 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2012-11-25 16:45:00 +01:00
|
|
|
import mekanism.common.Mekanism;
|
2012-12-20 22:53:39 +01:00
|
|
|
import net.minecraft.block.Block;
|
2013-03-18 17:23:57 +01:00
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
2012-12-20 22:53:39 +01:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.EnumToolMaterial;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.item.ItemTool;
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2012-11-05 20:29:04 +01:00
|
|
|
public class ItemMekanismTool extends ItemTool
|
2012-08-15 22:41:41 +02:00
|
|
|
{
|
2012-11-15 21:04:12 +01:00
|
|
|
public ItemMekanismTool(int id, int mobBoost, EnumToolMaterial enumtoolmaterial, Block effectiveBlocks[])
|
2012-08-15 22:41:41 +02:00
|
|
|
{
|
2012-11-15 21:04:12 +01:00
|
|
|
super(id, mobBoost, enumtoolmaterial, effectiveBlocks);
|
2012-11-05 20:29:04 +01:00
|
|
|
setCreativeTab(Mekanism.tabMekanism);
|
2012-08-15 22:41:41 +02:00
|
|
|
}
|
|
|
|
|
2012-11-15 21:04:12 +01:00
|
|
|
@Override
|
|
|
|
public void addInformation(ItemStack itemstack, EntityPlayer entityplayer, List list, boolean flag)
|
|
|
|
{
|
|
|
|
list.add("HP: " + (itemstack.getMaxDamage() - itemstack.getItemDamage()));
|
|
|
|
}
|
|
|
|
|
2013-03-18 17:23:57 +01:00
|
|
|
@Override
|
2013-04-13 02:25:21 +02:00
|
|
|
public void registerIcons(IconRegister register)
|
2013-03-18 17:23:57 +01:00
|
|
|
{
|
2013-04-13 02:25:21 +02:00
|
|
|
itemIcon = register.registerIcon("mekanism:" + getUnlocalizedName().replace("item.", ""));
|
2013-03-18 17:23:57 +01:00
|
|
|
}
|
2012-08-15 22:41:41 +02:00
|
|
|
}
|