Enum RealmsClient.Environment

java.lang.Object
java.lang.Enum<RealmsClient.Environment>
net.minecraft.client.realms.RealmsClient.Environment
All Implemented Interfaces:
Serializable, Comparable<RealmsClient.Environment>, java.lang.constant.Constable
Enclosing class:
RealmsClient

@Environment(CLIENT)
public static enum RealmsClient.Environment
extends Enum<RealmsClient.Environment>
  • Enum Constant Details

  • Field Details

    • baseUrl

      public String baseUrl
    • protocol

      public String protocol
  • Constructor Details

    • Environment

      private Environment​(String baseUrl, String protocol)
  • Method Details

    • values

      public static RealmsClient.Environment[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RealmsClient.Environment valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null