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 Details

    • CLOUD_SYNC_ENABLED

      public static final ConfigKey<Boolean> CLOUD_SYNC_ENABLED
    • AUTOMATIC_CLOUD_SYNC

      public static final ConfigKey<Boolean> AUTOMATIC_CLOUD_SYNC
    • CLOUD_SERVER

      public static final ConfigKey<String> CLOUD_SERVER
      See Also:
      • for the actual default
    • SYNC_VERBOSITY

      public static final ConfigKey<SyncVerbosity> SYNC_VERBOSITY
    • CODEC

      public static final com.mojang.serialization.MapCodec<CloudSyncConfig> 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 a CloudSyncConfig record class.
      Parameters:
      enabled - the value for the enabled record component
      automatic - the value for the automatic record component
      server - the value for the server record component
      logVerbosity - the value for the logVerbosity record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enabled

      public ConfigValue<Boolean> enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • automatic

      public ConfigValue<Boolean> automatic()
      Returns the value of the automatic record component.
      Returns:
      the value of the automatic record component
    • server

      public ConfigValue<String> server()
      Returns the value of the server record component.
      Returns:
      the value of the server record component
    • logVerbosity

      public ConfigValue<SyncVerbosity> logVerbosity()
      Returns the value of the logVerbosity record component.
      Returns:
      the value of the logVerbosity record component