From 658107fe149cf10ad9b78b9ef17745c1d13665bb Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Fri, 30 May 2025 16:57:37 +0800 Subject: [PATCH] add blockSounds global to docs --- docs/apidoc/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/apidoc/index.md b/docs/apidoc/index.md index 5e4fe28..fea8e7d 100644 --- a/docs/apidoc/index.md +++ b/docs/apidoc/index.md @@ -34,6 +34,8 @@ The global object has the following properties: - This is a key-value dictionary of all of the enchantments in the game. It is generated upon init from the static variables of the `Enchantment` class. - For example, to access the enchantment class for `knockback`, you can use `ModAPI.enchantments["knockback"]` - As the enchantment class has other static variables, `Object.keys` will also return non-enchantment keys such as `enchantmentsBookList`. + - `ModAPI.blockSounds: Map` (1.12 only) + - This is a key-value dictionary of `SoundType`s. Used in `.setSoundType(soundType)` when registering custom blocks in 1.12. - `ModAPI.minecraft: Minecraft` - This is the minecraft instance for the client, generated upon init. - It can also be accessed using `ModAPI.mc`