I am a second year Java Development student and also a Double Elite Commander. I am always trying to make new 3rd Party Applications for ED, so I started making my very own ED Java API. Not only to see if I can do it but also to maybe helps some of you out there that don't want to go through this tedious part of their App.
Elite: Dangerous Java API short EDJ is a simple API that reads the playerjournals provided by the game and listens for when new lines are added to the file. This API will allow you to register EventListeners
to listen to specific events that occur and process the journals written data. For more information on how to use this API have a look at How to use EDJ?
If you have no programming knowledge you can contribute by sending me your player journal with the missing entries found in the Trello Board and I will add them to the API as soon as I find time. Here is a link to my Trello board with the current progress and event coverage.
First we have to create a listener which tells the api what you want to do with the data.
public class FSDJumpListener extends EventListener {
@Override
public void onFSDJump(FSDJumpEvent event) {
//TODO: process the data in event
}
}
Now we create the API with the help of the EDJApiBuilder
class where we register the listener we just created.
EDJApi api = new EDJApiBuilder(true) // Create a EDJApiBuilder object with the debug option enabled or disabled
.addListeners(new FSDJumpListener()) // add your listener classes to the api
.build(); // Building The API
That's it! Now the API will run the code defined in the EventListeners whenever that event is called.
- Gabriel Smith - Initial work - XenoPyax
- drh713 - submitted 90+ missing event strings - u/drh713
- EmulatedPenguin - provided 720+ lines of data which made 15 new event detections and 8 bug fixes - cmdr_emulatedpenguin
Also see here for a list of all contributors of EDJ.
This project is licensed under the MIT License - see the LICENSE.md file for details