From ba597708d9f982f9513ae6417f2f83e9a66a59bb Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Fri, 13 Sep 2024 15:17:37 +0800 Subject: [PATCH] add Minecraft global to doc --- docs/apidoc/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/apidoc/index.md b/docs/apidoc/index.md index 9af4174..95e7f8e 100644 --- a/docs/apidoc/index.md +++ b/docs/apidoc/index.md @@ -30,6 +30,8 @@ The global object has the following properties: - 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.minecraft.getRef()` + - It can also be accessed using `Minecraft` + - Only here for compatibility - `ModAPI.server: MinecraftServer` - 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`)