From ee0e11b410b2a3caa8a3cbb78b66a07a24213d66 Mon Sep 17 00:00:00 2001 From: drcrazy Date: Wed, 15 Nov 2017 14:36:52 +0300 Subject: [PATCH] Added override annotation. --- src/main/java/ru/wowhcb/towel/items/ItemTowel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ru/wowhcb/towel/items/ItemTowel.java b/src/main/java/ru/wowhcb/towel/items/ItemTowel.java index ec112dd..ab6f1c4 100644 --- a/src/main/java/ru/wowhcb/towel/items/ItemTowel.java +++ b/src/main/java/ru/wowhcb/towel/items/ItemTowel.java @@ -64,6 +64,7 @@ public EnumAction getItemUseAction(ItemStack stack) { /** * Called when the equipped item is right clicked. */ + @Override public ActionResult onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) { return new ActionResult(EnumActionResult.SUCCESS, playerIn.getHeldItem(handIn)); } @@ -72,6 +73,7 @@ public ActionResult onItemRightClick(World worldIn, EntityPlayer play * allows items to add custom lines of information to the mouseover * description */ + @Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List tooltip, ITooltipFlag flagIn) { String s = I18n.translateToLocal("item.towel.towel.tooltip");