mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-27 15:59:26 -09:00
add some methods to documentation
This commit is contained in:
parent
f4fda26235
commit
232a549ea4
0
docs/apidoc/events.md
Normal file
0
docs/apidoc/events.md
Normal file
@ -53,3 +53,19 @@ The global object has the following properties:
|
|||||||
- The version of ModAPI.
|
- The version of ModAPI.
|
||||||
- `ModAPI.flavour: String`
|
- `ModAPI.flavour: String`
|
||||||
- The flavour of ModAPI. Hardcoded to be `"injector"`.
|
- The flavour of ModAPI. Hardcoded to be `"injector"`.
|
||||||
|
|
||||||
|
The ModAPI object has the following methods:
|
||||||
|
- `addEventListener(eventName: String, callback: Function) : void`
|
||||||
|
- More: [EventDocumentation](events.md)
|
||||||
|
- `require(componentName: String) : void`
|
||||||
|
- Import required modules, such as `player` and `network`.
|
||||||
|
- Usage: `ModAPI.require("module")`
|
||||||
|
- `displayToChat(message: String) : void`
|
||||||
|
- Displays client-side message to user's ingame chat gui.
|
||||||
|
- Usage: `ModAPI.displayToChat("Hello World.")`
|
||||||
|
- `clickMouse() : void`
|
||||||
|
- Triggers a left click ingame.
|
||||||
|
- Usage: `ModAPI.clickMouse()`
|
||||||
|
- `rightClickMouse() : void`
|
||||||
|
- Triggers a right click ingame.
|
||||||
|
- Usage: `ModAPI.rightClickMouse()`
|
Loading…
x
Reference in New Issue
Block a user