ModAPI.array contains the API for creating java arrays easily.
Methods:
ModAPI.array.object(class: Class, jsarray: object[]) : Object[]
ModAPI.array.object(class: Class, size: number) : Object[]
ModAPI.array.boolean(jsarray: boolean[]) : Boolean[]
true
/false
) and converts it into a java array.ModAPI.array.boolean(size: number) : Boolean[]
ModAPI.array.byte(jsarray: number[]) : Byte[]
ModAPI.array.byte(size: number) : Byte[]
ModAPI.array.char(jsarray: number[]) : Char[]
ModAPI.array.char(size: number) : Char[]
ModAPI.array.short(jsarray: number[]) : Short[]
ModAPI.array.short(size: number) : Short[]
ModAPI.array.int(jsarray: number[]) : Int[]
ModAPI.array.int(size: number) : Int[]
ModAPI.array.float(jsarray: number[]) : Float[]
ModAPI.array.float(size: number) : Float[]
ModAPI.array.double(jsarray: number[]) : Float[]
ModAPI.array.double(size: number) : Float[]