kotlin
fun registerNativeParticleType(id: String, registerMode: RegisterMode = RegisterMode.WORLD, particleTypeFactory: () -> ParticleType<*>): KattonRegistry.KattonParticleTypeEntryRegisters a native ParticleType with hot-reload support.
Parameters
| Parameter | Description |
|---|---|
id | Particle identifier (e.g., "mymod:custom_particle") |
registerMode | Registration mode (GLOBAL, WORLD, or RELOADABLE) |
particleTypeFactory | Factory function to create the ParticleType instance |
Returns
The registered KattonParticleTypeEntry
