Enum Class SyncStatus

java.lang.Object
java.lang.Enum<SyncStatus>
com.wildfire.common.entities.players.SyncStatus
All Implemented Interfaces:
Serializable, Comparable<SyncStatus>, Constable

public enum SyncStatus extends Enum<SyncStatus>
Enum denoting the current sync status of a PlayerConfigHolder
  • Enum Constant Details

    • CACHED

      public static final SyncStatus CACHED

      Indicates that the relevant configuration has had its data loaded from a file on disk.

      This is only applicable for configurations loaded on the logical client, as the logical server (dedicated or otherwise) does not read player data from disk.

    • SYNCED

      public static final SyncStatus SYNCED
      Indicates that the relevant configuration has had its data loaded from a sync packet, or on the logical client a profile retrieved from the cloud sync server.
    • UNKNOWN

      public static final SyncStatus UNKNOWN

      Indicates that this configuration has an unknown sync state.

      This is the default sync state for new configuration instances.

  • Method Details

    • values

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