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

Additions to API (Java)

Started by Tiin57, 26 October 2012 - 03:20 PM
Tiin57 #1
Posted 26 October 2012 - 05:20 PM
I think that there should be some additions made to the Java API that will allow for new Lua APIs to be made that only direct Java can do, such as file manipulation, without being housed in a peripheral block.
Orwell #2
Posted 26 October 2012 - 05:37 PM
I think that there should be some additions made to the Java API that will allow for new Lua APIs to be made that only direct Java can do, such as file manipulation, without being housed in a peripheral block.

I've managed to do so a couple of months ago. You can decompile the mod and use reflection here and there. I made some custom API's to interface with Bukkit. Though, Cloudy and Dan made clear to me that they don't want any base classes redistributed. So avoid doing that. :D/>/>
Tiin57 #3
Posted 26 October 2012 - 06:02 PM
OK, I'll do dat.
Cloudy #4
Posted 26 October 2012 - 06:29 PM
I doubt we will add ways to add API's arbitrarily. It's possible with reflection and forge hooks if you want to do it yourself. We are probably going to add ways to interface with other tile entities though - it's something I want to do to both make our lives and your lives easier.
Tiin57 #5
Posted 26 October 2012 - 07:19 PM
Yeah, that's what I meant. Awesome.