Class Orphanage
java.lang.Object
johnsmith.enchantmentcore.config.Orphanage
- All Implemented Interfaces:
OrphanHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface OrphanHandler
OrphanHandler.Provider -
Constructor Summary
Constructors -
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.static voidnotifyPlayerIfPrivileged(net.minecraft.server.level.ServerPlayer player)
-
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:OrphanHandlerAdopts an orphaned configuration description into a designated fallback configuration space.- Specified by:
adoptin interfaceOrphanHandler- Parameters:
orphan- The orphanedConfigDescriptionreferencing an unavailableConfigManager.- Returns:
- A remapped
ConfigDescriptionpointing to a valid fallback configuration manager and category.
-
notifyPlayerIfPrivileged
public static void notifyPlayerIfPrivileged(net.minecraft.server.level.ServerPlayer player)
-