kotlin
fun registerNativeEntityType(id: String, registerMode: RegisterMode = RegisterMode.WORLD, entityTypeFactory: () -> EntityType<*>): KattonRegistry.KattonEntityTypeEntryRegisters a native EntityType with hot-reload support.
This is a lower-level API that only registers the EntityType itself. For complete entity registration (including attributes, spawn egg, and spawn placement), use [registerNativeEntity] instead.
Parameters
| Parameter | Description |
|---|---|
id | Entity identifier (e.g., "mymod:custom_entity") |
registerMode | Registration mode (GLOBAL, WORLD, or RELOADABLE) |
entityTypeFactory | Factory function to create the EntityType instance |
Returns
The registered KattonEntityTypeEntry
