Перейти к основному содержанию

WRAP_JAVA

Callable

  • WRAP_JAVA<T>(name: string): T

  • Allows to create new JS modules imported from Java code and use it in the mod.


    Type parameters

    • T = any

    Parameters

    • name: string

      name of the module, as registered from Java code

    Returns T

    JS module, implemented in Java code.