@ApiStatus.Experimental
@ApiStatus.Experimental fun registerNativeEntity(id: String, registerMode: RegisterMode = RegisterMode.WORLD, configure: KattonEntityProperties.() -> Unit = {}, entityFactory: (KattonEntityProperties) -> EntityType<*>): KattonRegistry.KattonEntityTypeEntryRegisters a complete native Entity with hot-reload support.
This is the primary API for registering custom entities from scripts. It handles EntityType registration plus optional attributes, spawn egg, and spawn placement configuration in a single call.
Parameters
| Parameter | Description |
|---|---|
id | Entity identifier (e.g., "mymod:custom_mob") |
registerMode | Registration mode (GLOBAL, WORLD, or RELOADABLE) |
configure | Configuration lambda for entity properties (dimensions, category, attributes, etc.) |
entityFactory | Factory function to create the EntityType instance |
Returns
The registered KattonEntityTypeEntry
