This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Bonum's profile picture

Is it possible to write a java api?

Started by Bonum, 26 July 2012 - 03:08 PM
Bonum #1
Posted 26 July 2012 - 05:08 PM
The wiki page about apis, http://computercraft...e=Category:APIs, is mostly about writing apis in lua but it mentions java apis.

Is it as simple as dropping a java class somewhere, like how the lua apis work, or are they defined inside one of the existing java files? I suppose that might still be possible, but wouldn't really be practical to distribute, it would break on CC updates, and so on, right?
Noodle #2
Posted 26 July 2012 - 06:57 PM
You could add the files in your mods file.. Just add another class that reads the java api.
MysticT #3
Posted 26 July 2012 - 11:23 PM
You can't write apis in java (well, you can, but you can't use them in ComputerCraft).

You could add the files in your mods file.. Just add another class that reads the java api.
That would require to change the mod, and you shouldn't.
Noodle #4
Posted 27 July 2012 - 12:01 AM
I'm saying if you could, you should.. Although you shouldn't post the result here.
Bonum #5
Posted 27 July 2012 - 02:38 PM
Ok, thanks.