NetJS (KubeJS Addon)

Quick rating

Community listing page, reviews may not be monitored by the author.

NetJS (KubeJS Addon)

No reviews yet

Addon for KubeJS for very limited safe network interaction.

Mod Loaders
Minecraft

About

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