I've tried using functional interfaces and method ...
# javascript
b
I've tried using functional interfaces and method references to pass the functions directly into the bindings with ScriptEngine.put, but I just come out with a ClassCastException because I can't seem to cast this::startRain to IntConsumer in Kotlin.