mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 07:01:20 -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)`
|
- `instanceOf(object: Object)`
|
||||||
- Checks if the `object` is an instance of the class.
|
- 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
|
### ReflectMethod Definition
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user