mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 22:51:18 -09:00
add Minecraft global to doc
This commit is contained in:
parent
f7475bab21
commit
ba597708d9
@ -30,6 +30,8 @@ The global object has the following properties:
|
|||||||
- This is the raw minecraft instance for the client, generated upon init.
|
- This is the raw minecraft instance for the client, generated upon init.
|
||||||
- It can also be accessed using `ModAPI.javaClient`
|
- It can also be accessed using `ModAPI.javaClient`
|
||||||
- It can also be accessed using `ModAPI.minecraft.getRef()`
|
- It can also be accessed using `ModAPI.minecraft.getRef()`
|
||||||
|
- It can also be accessed using `Minecraft`
|
||||||
|
- Only here for compatibility
|
||||||
- `ModAPI.server: MinecraftServer`
|
- `ModAPI.server: MinecraftServer`
|
||||||
- This is the dedicated minecraft server in the service worker, generated when the `serverstart`.
|
- This is the dedicated minecraft server in the service worker, generated when the `serverstart`.
|
||||||
- It can only be accessed in the dedicated server's context. (See `ModAPI.dedicatedServer`)
|
- It can only be accessed in the dedicated server's context. (See `ModAPI.dedicatedServer`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user