Enum Class QueryKey

java.lang.Object
java.lang.Enum<QueryKey>
net.minestom.server.extras.query.response.QueryKey
All Implemented Interfaces:
Serializable, Comparable<QueryKey>, Constable

public enum QueryKey extends Enum<QueryKey>
An enum of default query keys.
  • Enum Constant Details

    • HOSTNAME

      public static final QueryKey HOSTNAME
    • GAME_TYPE

      public static final QueryKey GAME_TYPE
    • GAME_ID

      public static final QueryKey GAME_ID
    • VERSION

      public static final QueryKey VERSION
    • PLUGINS

      public static final QueryKey PLUGINS
    • MAP

      public static final QueryKey MAP
    • NUM_PLAYERS

      public static final QueryKey NUM_PLAYERS
    • MAX_PLAYERS

      public static final QueryKey MAX_PLAYERS
    • HOST_PORT

      public static final QueryKey HOST_PORT
    • HOST_IP

      public static final QueryKey HOST_IP
  • Method Details

    • values

      public static QueryKey[] 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 QueryKey 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
    • getKey

      @NotNull public @NotNull String getKey()
      Gets the key of this query key.
      Returns:
      the key
    • getValue

      @NotNull public @NotNull String getValue()
      Gets the value of this query key.
      Returns:
      the value