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.

@FunctionalInterface public interface OrphanHandler
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 Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Global service provider holding the active OrphanHandler implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    johnsmith.configoverhauled.api.data.ConfigDescription
    adopt(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 orphaned ConfigDescription referencing an unavailable ConfigManager.
      Returns:
      A remapped ConfigDescription pointing to a valid fallback configuration manager and category.