Enum Class UserApiService.UserFlag

java.lang.Object
java.lang.Enum<UserApiService.UserFlag>
com.mojang.authlib.minecraft.UserApiService.UserFlag
All Implemented Interfaces:
Serializable, Comparable<UserApiService.UserFlag>, Constable
Enclosing interface:
UserApiService

public static enum UserApiService.UserFlag extends Enum<UserApiService.UserFlag>
  • Enum Constant Details

    • SERVERS_ALLOWED

      public static final UserApiService.UserFlag SERVERS_ALLOWED
      Is the user allowed to play on 3rd-party multiplayer servers?
    • REALMS_ALLOWED

      public static final UserApiService.UserFlag REALMS_ALLOWED
      Is the user allowed to play on Realms?
    • CHAT_ALLOWED

      public static final UserApiService.UserFlag CHAT_ALLOWED
      Is the user allowed to access chat in online games?
    • TELEMETRY_ENABLED

      public static final UserApiService.UserFlag TELEMETRY_ENABLED
      Is telemetry enabled for this user?
    • PROFANITY_FILTER_ENABLED

      public static final UserApiService.UserFlag PROFANITY_FILTER_ENABLED
      Is chat profanity filter enabled for this user?
    • OPTIONAL_TELEMETRY_AVAILABLE

      public static final UserApiService.UserFlag OPTIONAL_TELEMETRY_AVAILABLE
      Is optional telemetry available for this user? This can only be `true` when TELEMETRY_ENABLED is also `true`
  • Constructor Details

    • UserFlag

      private UserFlag()
  • Method Details

    • values

      public static UserApiService.UserFlag[] 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 UserApiService.UserFlag 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