fun <T : Any> registerNativePersistentDataComponentType(id: String, registerMode: RegisterMode = RegisterMode.WORLD, codec: Codec<T>): KattonRegistry.KattonDataComponentTypeEntryRegisters a persistent (saved to disk) DataComponentType with hot-reload support.
Persistent components are serialized using their codec and saved with the item. Use this for data that must survive across save/load cycles.
Parameters
| Parameter | Description |
|---|---|
id | Component identifier (e.g., "mymod:custom_data") |
registerMode | Registration mode (GLOBAL, WORLD, or RELOADABLE) |
codec | The codec for serializing/deserializing the component value |
Returns
The registered KattonDataComponentTypeEntry
