Class Orphanage

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

public final class Orphanage extends Object implements OrphanHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from interface johnsmith.enchantmentcore.api.config.OrphanHandler

    OrphanHandler.Provider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.
    static void
    notifyPlayerIfPrivileged(net.minecraft.server.level.ServerPlayer player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)