Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Using an external library/framework?


Recommended Posts

Not sure if this is the right thread, so move it if I'm in the wrong place.

 

I'm working on updating an old mod to 1.15.2, which runs a RESTful HTTP server alongside the game server that allows outside services to query information.

 

Originally, I had implemented this using Netty, because it is already included in any Minecraft game. However, I was unable to figure out how to get an HTTPS server running, and honestly Netty is too low-level for this project. It required like 10 different classes just to get a basic HTTP server running.

 

I've been looking into different libraries, and it seems like the Spring framework is something that would help me implement a RESTful API without having to re-invent the wheel 20 times first. However, I have no idea if it would even be possible to set up a mod with Spring, or how I would distribute it. Spring has tutorials on its site for setting it up with Gradle, but the sections of the build.gradle it's having me modify don't even exist in the ForgeGradle build.gradle

 

Can anyone help me figure out how to set this up, or suggest a different networking library that has easy HTTP/HTTPS server support?

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.