Enum Class StartupSync
- All Implemented Interfaces:
Serializable, Comparable<StartupSync>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe client must have the server's value, because both sides built something from it (an item that exists or not, a block's properties...).The client uses the server's value while connected, and its own again afterwards. -
Method Summary
Modifier and TypeMethodDescriptionstatic StartupSyncReturns the enum constant of this class with the specified name.static StartupSync[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-