promotional bannermobile promotional banner
header
premium banner

NetJS (KubeJS Addon) will start downloading in 5 seconds...

STILL DOWNLOADING MANUALLY??

Join over 10 million players who use the CurseForge app!

Download App Now

Description

Description:
Addon for KubeJS for very limited safe network interaction.
Adds NetJSWrapper named NetJS which you can use anywhere in your scripts.
The mod itself does nothing.
Features:

// async, accessing the network will be a separate thread, the game will continue to run, and the callback will be called when the result is received.

  • NetJS.getPasteBin('3zCF8MM6', result => {})
  • NetJS.getGists('3f1cd831af032e52238ef161bdd715b3', result => {})
    // linear, not recomended, because will stop main client/server thread utill result is received.
  • NetJS.getPasteBin('3zCF8MM6', false, result => {})
  • NetJS.getGists('3f1cd831af032e52238ef161bdd715b3', false, result => {})

Usage:

https://github.com/KostromDan/NetJS/branches