kotlin
fun registerNativeBlockEntityType(id: String, registerMode: RegisterMode = RegisterMode.WORLD, blockEntityTypeFactory: () -> BlockEntityType<*>): KattonRegistry.KattonBlockEntityTypeEntryRegisters a native BlockEntityType with hot-reload support.
Parameters
| Parameter | Description |
|---|---|
id | BlockEntityType identifier (e.g., "mymod:custom_block_entity") |
registerMode | Registration mode (GLOBAL, WORLD, or RELOADABLE) |
blockEntityTypeFactory | Factory function to create the BlockEntityType instance |
Returns
The registered KattonBlockEntityTypeEntry
