Enum Class FMLConfig.ConfigValue

java.lang.Object
java.lang.Enum<FMLConfig.ConfigValue>
net.minecraftforge.fml.loading.FMLConfig.ConfigValue
All Implemented Interfaces:
Serializable, Comparable<FMLConfig.ConfigValue>, Constable
Enclosing class:
FMLConfig

public static enum FMLConfig.ConfigValue extends Enum<FMLConfig.ConfigValue>
  • Enum Constant Details

  • Field Details

    • entry

      private final String entry
    • defaultValue

      private final Object defaultValue
    • comment

      private final String comment
    • entryFunction

      private final Function<Object,Object> entryFunction
  • Constructor Details

  • Method Details

    • values

      public static FMLConfig.ConfigValue[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FMLConfig.ConfigValue valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • buildConfigEntry

      void buildConfigEntry(com.electronwill.nightconfig.core.ConfigSpec spec, com.electronwill.nightconfig.core.CommentedConfig commentedConfig)
    • getConfigValue

      private <T> T getConfigValue(com.electronwill.nightconfig.core.file.CommentedFileConfig config)
    • updateValue

      public <T> void updateValue(com.electronwill.nightconfig.core.file.CommentedFileConfig configData, T value)