newNative

fun newNative(id: Identifier, registerMode: RegisterMode = RegisterMode.AUTO, blockFactory: (BlockBehaviour.Properties) -> Block): KattonRegistry.KattonBlockEntry

Registers a native Block instance with hot-reload support.

Return

The registered KattonBlockEntry

Parameters

id

The identifier for the block

registerMode

The registration mode

blockFactory

Factory function to create the Block instance