Even if you do not do any copying, you can still infringe under copyright law. The theory is that the copyright owner has exclusively power to decide who should compile, adapt or arrange a copyrighted work.
I recommend further reading at: http://digitalcommons.law.wne.edu/cgi/viewcontent.cgi?articl...
Mods are created using the decompiled client, and built against that. But when they are released, they do not contain any of Mojang's code.
Installing mods is done by copying compiled .class files into the client .jar
This is no longer true, except for Forge. What you're talking about is the old-style mod system, which has been obsolete for some number of years; nowadays they're dynamically linked from iterating over the mods/ folder.
The causes of action are: direct and secondary infringement of registered copyrights, trafficking in circumvention devices, breach of contract, and intentional interference with contractual relations.
A couple of those might not apply in a clean room implementation, but the others would.
I know there are lawyers who seem to argue otherwise, for example the GPL states "You are not required to accept this license to receive or run a copy of the program". But I don't know if that statement has any legal basis in general, or if it's just the FSF granting permission to run covered software without accepting the GPL. As far as the US goes, I think it's the latter, but it may be different in other jurisdictions.
I'm not a lawyer, please go hire someone if you really need to know.
Or did you mean noncommercial use, as in evaluation licenses?
(edit: several edits because I am confused)
The district court ruled that so long as implementation is different you are free to provide the same API. A federal circuit court reversed this ruling this year. The case is now back in the district court for consideration of whether the use of the API falls under the fair-use clause.
https://en.wikipedia.org/wiki/GNU_General_Public_License#Lin...
But I don't think either of those are really similar. Android is emulating the Java API, without Oracle code being involved. Programs that link against GPL libraries are intended to make runtime calls to copyrighted code. And game mods modify the copyrighted program's runtime behavior, having the program make calls to the modding code (in place of its own). I can't think of an analogue of the last situation.
Also, does restricting modification like this infringe on "first sale" rights?