makeActionResponse

fun makeActionResponse(packet: ScriptingPacket): ScriptingPacket

Return a valid response packet for a request packet from a script interpreter.

This is what allows scripts to access Kotlin/JVM properties, methods, keys, etc. Implements the specifications on action and response types, structures, and behaviours in Module.md.

Return

Response packet.

Parameters

packet

Packet to respond to.

Sources

jvm source
Link copied to clipboard