Today I'm happy to introduce you my new API: MCEF, which enables modders to embed a web browser into their mods. It was initially created for my own mod (WebDisplays) but I decided to turn it into an open-source API so that other modders may also use JCEF while staying compatible with WebDisplays.
Example of uses:
- Make a nice HTML5+CSS3+JS user interface
- Show your wiki to help your players
- Show your server's online shop, etc...
WARNING: Right now only Windows is supported; I'll compile it for Linux as soon as possible. However I can't compile it for Mac; if you want to help, see the GitHub page.
You can get the source code from GitHub here: https://github.com/montoyo/mcef
Basically, you just need to go to the release page, download the latest API release, and put it into your "libs" directory of your project. Users will have to download the mod from this thread. To understand how it works, you may look at the net.montoyo.mcef.example package, which contains an example browser. If MCEF is an optional dependecy, you may use Forge's @Optional annotations.
0.6: Updated to a newer JCEF version; the "MCEF not closing java" issue SHOULD be fixed.
0.9: Fixed incompatibility with the new launcher. Available for 1.10.2 and 1.12.2