Archive eaglerforge-injector (tool, 1.8.8, clean-with-notes)

This commit is contained in:
2026-11-27 22:15:15 -06:00
parent 5f406cdc02
commit 606dab7e6e
91 changed files with 9667 additions and 0 deletions
@@ -0,0 +1,38 @@
## ModAPI.array
ModAPI.array contains the API for creating java arrays easily.
Methods:
- `ModAPI.array.object(class: Class|String, jsarray: object[]) : Object[]`
- Converts a javascript array of a class to a java array of a class.
- The class argument can be a raw java class (eg. `ModAPI.reflect.getClassByName(...).class`)
- It can also be a string `"java.util.String"`
- `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.
- `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.