Enum Class StartupSync

java.lang.Object
java.lang.Enum<StartupSync>
net.ixdarklord.coolcatcore.api.config.StartupSync
All Implemented Interfaces:
Serializable, Comparable<StartupSync>, Constable

public enum StartupSync extends Enum<StartupSync>
How a ConfigScope.STARTUP value is reconciled with the server's when a client joins. Values built with localOnly() aren't compared at all: each side keeps its own.
  • Enum Constant Details

    • REQUIRE_MATCH

      public static final StartupSync REQUIRE_MATCH
      The client must have the server's value, because both sides built something from it (an item that exists or not, a block's properties...). A client that differs is disconnected before joining, with a list of the differences and the option to adopt the server's values for the next start. The default.
    • USE_SERVER

      public static final StartupSync USE_SERVER
      The client uses the server's value while connected, and its own again afterwards. For values read while playing rather than when content is created (a multiplier applied every tick, say).
  • Method Details

    • values

      public static StartupSync[] 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 StartupSync 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