Skip to content

Commit

Permalink
Added override annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drcrazy committed Nov 15, 2017
1 parent d798ffb commit ee0e11b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/ru/wowhcb/towel/items/ItemTowel.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public EnumAction getItemUseAction(ItemStack stack) {
/**
* Called when the equipped item is right clicked.
*/
@Override
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) {
return new ActionResult<ItemStack>(EnumActionResult.SUCCESS, playerIn.getHeldItem(handIn));
}
Expand All @@ -72,6 +73,7 @@ public ActionResult<ItemStack> 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<String> tooltip, ITooltipFlag flagIn) {
String s = I18n.translateToLocal("item.towel.towel.tooltip");
Expand Down

0 comments on commit ee0e11b

Please sign in to comment.