You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jtljac edited this page Sep 24, 2023
·
2 revisions
Minecraft is not really that multithreaded. Dat Modding API Provides a standard interface to grant mods access to a common thread pool for executing code concurrently.
// Very simple abstraction around a thread pool
// Exposes submitting callables (with futures and runnables)
// Supports scheduling callables and runables to occur after a delay
// Supports scheduling a callable to run at a fixed rate with a given period
// runOnMainThread for running code in the context of the serverThread