Hmm, Interesting how you wrote this code. To be honest, you probably copied it from somewhere else. But this is a very easy to fix error. It's a syntax error. This means that is doesn't really affect any logic or anything, just isn't how the Java language works. I suggest reading here for Java tutorials. They're extremely well explained and go quite advanced as well! As for your specific problem, here's the correct code, error free (I do still suggest that you read the tutorials to understand why this works the way it does:
public class ItemDirtBlob extends Item
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
Didn't copy it, just quick referencing guides when I need them which tends to lead to choppy code while I'm learning a new language. I'm more fluent in C#, so i'm learning Java syntax as I go. I'd use tutorials but I just can't stand them and so I just learn how to write in a new language through trial and error (most of the time :P)
Anyways, looking at the code side by side, I'm now realizing I popped the if statement in the wrong place like a noob, should have checked it more carefully. Guess that's what being tired can do to you.
While it is not the exact same, it is very similar because instead of coordinates, you will have to use BlockPos, I haven't coded a lot of 1.8 but I believe there are some static final fields in the BlockPos class that you can easily adapt the code to. Or if you wanna simplify it, you can just make a new BlockPos with the given coordinates.
While it is not impossible, it might be a bit difficult. The way the speed of the item is set in the code is from the constructor of the EntityThrowable class. It uses the method setThrowingHeading(...), so maybe you could override that method and set it yourself? I haven't tried this but that's what I'd start with.