public override net.minecraft.src.ItemStack OnItemRightClick(net.minecraft.src.ItemStack itemstack, net.minecraft.src.World world, net.minecraft.src.EntityPlayer entityplayer ) { if (entityplayer.fishEntity != null) { int i = entityplayer.fishEntity.CatchFish(); itemstack.DamageItem(i, entityplayer); entityplayer.SwingItem(); } else { world.PlaySoundAtEntity(entityplayer, "random.bow", 0.5F, 0.4F / (itemRand.NextFloat () * 0.4F + 0.8F)); if (!world.singleplayerWorld) { world.AddEntity(new net.minecraft.src.EntityFish(world, entityplayer)); } entityplayer.SwingItem(); } return(itemstack); }