kotlin
fun registerNativeSoundEvent(id: String, registerMode: RegisterMode = RegisterMode.WORLD, soundEventFactory: () -> SoundEvent): KattonRegistry.KattonSoundEventEntryRegisters a native SoundEvent with hot-reload support.
Parameters
| Parameter | Description |
|---|---|
id | Sound identifier (e.g., "mymod:custom_sound") |
registerMode | Registration mode (GLOBAL, WORLD, or RELOADABLE) |
soundEventFactory | Factory function to create the SoundEvent instance |
Returns
The registered KattonSoundEventEntry
