Enum Class ModConfig.Type

java.lang.Object
java.lang.Enum<ModConfig.Type>
net.minecraftforge.fml.config.ModConfig.Type
All Implemented Interfaces:
Serializable, Comparable<ModConfig.Type>, Constable
Enclosing class:
ModConfig

public static enum ModConfig.Type extends Enum<ModConfig.Type>
  • Enum Constant Details

    • COMMON

      public static final ModConfig.Type COMMON
      Common mod config for configuration that needs to be loaded on both environments. Loaded on both servers and clients. Stored in the global config directory. Not synced. Suffix is "-common" by default.
    • CLIENT

      public static final ModConfig.Type CLIENT
      Client config is for configuration affecting the ONLY client state such as graphical options. Only loaded on the client side. Stored in the global config directory. Not synced. Suffix is "-client" by default.
    • SERVER

      public static final ModConfig.Type SERVER
      Server type config is configuration that is associated with a server instance. Only loaded during server startup. Stored in a server/save specific "serverconfig" directory. Synced to clients during connection. Suffix is "-server" by default.
  • Constructor Details

    • Type

      private Type()
  • Method Details

    • values

      public static ModConfig.Type[] 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 ModConfig.Type 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
    • extension

      public String extension()