Jump to content

Replace ServerWorld with a mod


Recommended Posts


I'm working on a mod to improve server performance by adding partial multithreading to the ServerWorld class. (It's quite complicated how I am doing this without introducing race conditions, but I've already completely worked out the logic for this.) The hope is that, even with many players on a server in multiple dimensions, performance doesn't start to sag due to ticks taking too long to run. I could recompile the actual ServerWorld class with my changes, and just distribute/run a modified version of forge on my servers, but I would rather implement this change through a mod. Is there a way that the ServerWorld class could be replaced during runtime by a class in my mod? I'm already mostly finished with a replacement, which I've called ThreadedServerWorld, but don't really know much about minecraft/forge so I can't actually get the game to use it instead of the built in ServerWorld. If anyone has any suggestions, I'm happy to hear them out.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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 Terms of Use.