Interface OrphanHandler
- All Known Implementing Classes:
Orphanage
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Service abstraction for handling
ConfigDescription targets that reference an unregistered
or missing ConfigManager.
When a datapack binds an enchantment property to a mod namespace that has not registered a
ConfigManager, the active OrphanHandler adopts the property into a dedicated fallback
category so that the configuration value remains accessible and editable at runtime.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classGlobal service provider holding the activeOrphanHandlerimplementation. -
Method Summary
Modifier and TypeMethodDescriptionjohnsmith.configoverhauled.api.data.ConfigDescriptionadopt(johnsmith.configoverhauled.api.data.ConfigDescription orphan) Adopts an orphaned configuration description into a designated fallback configuration space.
-
Method Details
-
adopt
johnsmith.configoverhauled.api.data.ConfigDescription adopt(johnsmith.configoverhauled.api.data.ConfigDescription orphan) Adopts an orphaned configuration description into a designated fallback configuration space.- Parameters:
orphan- The orphanedConfigDescriptionreferencing an unavailableConfigManager.- Returns:
- A remapped
ConfigDescriptionpointing to a valid fallback configuration manager and category.
-