2 KiB
2 KiB
ModAPI.array
ModAPI.array contains the API for creating java arrays easily.
Methods:
ModAPI.array.object(class: Class, jsarray: object[]) : Object[]- Converts a javascript array of a class to a java array of a class.
ModAPI.array.object(class: Class, size: number) : Object[]- Creates a java array of a class with the specified size.
ModAPI.array.boolean(jsarray: boolean[]) : Boolean[]- Takes a java cript array of booleans (
true/false) and converts it into a java array.
- Takes a java cript array of booleans (
ModAPI.array.boolean(size: number) : Boolean[]- Creates a boolean array with the specified size.
ModAPI.array.byte(jsarray: number[]) : Byte[]- Takes a javascript array of numbers and converts it into a java byte array.
ModAPI.array.byte(size: number) : Byte[]- Creates a byte array with the specified size.
ModAPI.array.char(jsarray: number[]) : Char[]- Takes a javascript array of numbers and converts it into a java char array.
ModAPI.array.char(size: number) : Char[]- Creates a char array with the specified size.
ModAPI.array.short(jsarray: number[]) : Short[]- Takes a javascript array of numbers and converts it into a java short array.
ModAPI.array.short(size: number) : Short[]- Creates a short array with the specified size.
ModAPI.array.int(jsarray: number[]) : Int[]- Takes a javascript array of numbers and converts it into a java int array.
ModAPI.array.int(size: number) : Int[]- Creates a int array with the specified size.
ModAPI.array.float(jsarray: number[]) : Float[]- Takes a javascript array of numbers and converts it into a java float array.
ModAPI.array.float(size: number) : Float[]- Creates a float array with the specified size.
ModAPI.array.double(jsarray: number[]) : Float[]- Takes a javascript array of numbers and converts it into a java double array.
ModAPI.array.double(size: number) : Float[]- Creates a double array with the specified size.