Class Orphanage

java.lang.Object
johnsmith.enchantmentcore.config.Orphanage
All Implemented Interfaces:
OrphanHandler

public final class Orphanage extends Object implements OrphanHandler
  • Constructor Details

    • Orphanage

      public Orphanage()
  • Method Details

    • adopt

      public johnsmith.configoverhauled.api.data.ConfigDescription adopt(johnsmith.configoverhauled.api.data.ConfigDescription orphan)
      Description copied from interface: OrphanHandler
      Adopts an orphaned configuration description into a designated fallback configuration space.
      Specified by:
      adopt in interface OrphanHandler
      Parameters:
      orphan - The orphaned ConfigDescription referencing an unavailable ConfigManager.
      Returns:
      A remapped ConfigDescription pointing to a valid fallback configuration manager and category.
    • notifyPlayerIfPrivileged

      public static void notifyPlayerIfPrivileged(net.minecraft.server.level.ServerPlayer player)