mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-22 21:51:17 -09:00
add blockSounds global to docs
This commit is contained in:
parent
686344331f
commit
658107fe14
@ -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<String, SoundType>` (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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user