diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-23 22:03:06 +0200 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-23 22:03:06 +0200 |
| commit | 198677e5b01009a65d243da1d25a14f879df659c (patch) | |
| tree | 512da4c4fbccc40fdcfc79a6f6cbf0f4eb0efd50 /common/darkknight/jewelrycraft/item/ItemThiefGloves.java | |
| parent | b01cf1aa1d3480ad52ee7940f213596bfe6a2090 (diff) | |
Changed lots of stuff, added new features. Ender Rings!!!
Diffstat (limited to 'common/darkknight/jewelrycraft/item/ItemThiefGloves.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/item/ItemThiefGloves.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/darkknight/jewelrycraft/item/ItemThiefGloves.java b/common/darkknight/jewelrycraft/item/ItemThiefGloves.java index 705a81c..19f1a1e 100644 --- a/common/darkknight/jewelrycraft/item/ItemThiefGloves.java +++ b/common/darkknight/jewelrycraft/item/ItemThiefGloves.java @@ -29,10 +29,11 @@ public class ItemThiefGloves extends ItemBase super(par1); this.setCreativeTab(CreativeTabs.tabTools); this.setMaxStackSize(1); + this.setMaxDamage(10); } @Override - public boolean itemInteractionForEntity(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, EntityLivingBase par3EntityLivingBase) + public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer par2EntityPlayer, EntityLivingBase par3EntityLivingBase) { if (par3EntityLivingBase instanceof EntityVillager) { @@ -58,6 +59,7 @@ public class ItemThiefGloves extends ItemBase else villager.entityDropItem(s, 0); par2EntityPlayer.addChatMessage("Villager #" + villager.getProfession() + ": Hmmm... I seem to have lost my " + s.getDisplayName() + "!"); + stack.damageItem(1, par2EntityPlayer); } buyingList.clear(); ReflectionHelper.setPrivateValue(EntityVillager.class, villager, 300, "timeUntilReset", "field_70961_j"); @@ -70,7 +72,7 @@ public class ItemThiefGloves extends ItemBase } else { - return super.itemInteractionForEntity(par1ItemStack, par2EntityPlayer, par3EntityLivingBase); + return super.itemInteractionForEntity(stack, par2EntityPlayer, par3EntityLivingBase); } } |
