Reflection
Very limited reflection is possible, but is not recommended. Use it in cases, when mod doesn't have integration.
// side: client
// This is a startup script. This script changes a java variable in ProjectE mod by accessing code directly
// Listen to post-init event, after all mods have loaded
events.listen(onEvent('postinit', functionevent (event)=> {
// Loads Java class field
var devEnvFieldPECore = utils.field(java('moze_intel.projecte.PECore', 'DEV_ENVIRONMENT')
// Changes public static boolean DEV_ENVIRONMENT of PECore class to false
devEnvField.staticSet(false)PECore.DEV_ENVIRONMENT = false
})