handleEvent

public void handleEvent(ScriptHook hook, Event event, LivingEntity directTarget, LivingEntity eventActor)

Invokes the Lua hook function with a lazily-built context table. Creates the Lua VM on the first call.