Jump to content




import cc packages



6 replies to this topic

#1 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 25 May 2016 - 06:40 PM

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' ?

#2 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

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 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

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 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#5 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 26 May 2016 - 11:25 AM

View PostLyqyd, on 25 May 2016 - 09:05 PM, said:

Moved to Peripheral Help and Discussion.
Never said the mod would add peripherals

View PostSquidDev, 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).
Thx!!!

#6 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

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 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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