Record Class CloudSyncConfig
java.lang.Object
java.lang.Record
com.wildfire.client.config.CloudSyncConfig
public record CloudSyncConfig(ConfigValue<Boolean> enabled, ConfigValue<Boolean> automatic, ConfigValue<String> server, ConfigValue<SyncVerbosity> logVerbosity)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CloudSyncConfig> static final ConfigKey<SyncVerbosity> -
Constructor Summary
ConstructorsConstructorDescriptionCloudSyncConfig(boolean enabled, boolean automatic, String server, SyncVerbosity logVerbosity) CloudSyncConfig(ConfigValue<Boolean> enabled, ConfigValue<Boolean> automatic, ConfigValue<String> server, ConfigValue<SyncVerbosity> logVerbosity) Creates an instance of aCloudSyncConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautomaticrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelogVerbosityrecord component.server()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CLOUD_SYNC_ENABLED
-
AUTOMATIC_CLOUD_SYNC
-
CLOUD_SERVER
-
SYNC_VERBOSITY
-
CODEC
-
-
Constructor Details
-
CloudSyncConfig
public CloudSyncConfig(boolean enabled, boolean automatic, String server, SyncVerbosity logVerbosity) -
CloudSyncConfig
public CloudSyncConfig(ConfigValue<Boolean> enabled, ConfigValue<Boolean> automatic, ConfigValue<String> server, ConfigValue<SyncVerbosity> logVerbosity) Creates an instance of aCloudSyncConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentautomatic- the value for theautomaticrecord componentserver- the value for theserverrecord componentlogVerbosity- the value for thelogVerbosityrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
automatic
Returns the value of theautomaticrecord component.- Returns:
- the value of the
automaticrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
logVerbosity
Returns the value of thelogVerbosityrecord component.- Returns:
- the value of the
logVerbosityrecord component
-