I am using eclipse and would like to access cc api. How would I do it, would a just convert the jar file into a zip file and extract that, or is there a CC 'opensource' ?
1
6 replies to this topic
#1
Posted 25 May 2016 - 06:40 PM
#2
Posted 25 May 2016 - 06:51 PM
CC is closed source. I'm not sure how mods work, but I suppose it goes through forge.
#3
Posted 25 May 2016 - 08:03 PM
If you open the ComputerCraft jar file as a zip, there is a folder called api/src. You can copy the contents of that to src/api/java and it should just work fine (see OpenPeripherals for an example).
Edited by SquidDev, 25 May 2016 - 08:03 PM.
#4
Posted 25 May 2016 - 09:05 PM
Moved to Peripheral Help and Discussion.
You can also just add the CC jar as a reference library. This options means you won't end up packaging the CC API with your mod unnecessarily.
You can also just add the CC jar as a reference library. This options means you won't end up packaging the CC API with your mod unnecessarily.
#5
Posted 26 May 2016 - 11:25 AM
Lyqyd, on 25 May 2016 - 09:05 PM, said:
Moved to Peripheral Help and Discussion.
SquidDev, on 25 May 2016 - 08:03 PM, said:
If you open the ComputerCraft jar file as a zip, there is a folder called api/src. You can copy the contents of that to src/api/java and it should just work fine (see OpenPeripherals for an example).
#6
Posted 26 May 2016 - 06:16 PM
Okay, and what if I want to edit the src afterwards:
Quote
This API may be redistributed unmodified and in full only
#7
Posted 27 May 2016 - 12:34 AM
Then you can't redistribute it. Simple.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users