From 5ccd234e08724dfb90e5ad416771d87f591bc4fe Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Mon, 16 Dec 2013 18:00:50 +0200 Subject: stuff with rings and stuff --- common/darkknight/jewelrycraft/item/ItemRing.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/darkknight/jewelrycraft/item/ItemRing.java') diff --git a/common/darkknight/jewelrycraft/item/ItemRing.java b/common/darkknight/jewelrycraft/item/ItemRing.java index 155261c..c96dd2f 100644 --- a/common/darkknight/jewelrycraft/item/ItemRing.java +++ b/common/darkknight/jewelrycraft/item/ItemRing.java @@ -5,6 +5,7 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.potion.PotionEffect; import net.minecraft.util.EnumChatFormatting; +import net.minecraft.world.World; public class ItemRing extends ItemBase { @@ -33,6 +34,11 @@ public class ItemRing extends ItemBase { return 65535; } + public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) + { + par2EntityPlayer.addChatMessage("Hello"); + return true; + } /** * allows items to add custom lines of information to the mouseover description -- cgit v1.2.3