mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
add getCon structorByArgs to documentation
This commit is contained in:
parent
f46d2650d1
commit
2c34b8c606
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user