newNative

fun newNative(id: Identifier, registerMode: RegisterMode = RegisterMode.AUTO, effectFactory: () -> MobEffect): KattonRegistry.KattonMobEffectEntry

Registers a native MobEffect instance with hot-reload support.

Return

The registered KattonMobEffectEntry

Parameters

id

The identifier for the effect

registerMode

The registration mode

effectFactory

Factory function to create the MobEffect instance