add getCon structorByArgs to documentation

This commit is contained in:
ZXMushroom63 2025-01-04 20:25:04 +08:00
parent f46d2650d1
commit 2c34b8c606

View File

@ -59,6 +59,9 @@ Each `ReflectClass` has the following methods:
- `instanceOf(object: Object)`
- Checks if the `object` is an instance of the class.
- `getConstructorByArgs(...argumentNames) : Function`
- Finds a constructor that matches the specified argument names. Eg:
- `ModAPI.reflect.getClassByName("ItemStack").getConstructorByArgs("blockIn", "amount")`
### ReflectMethod Definition