Serializable
, Comparable<GS4QueryEvent.QueryType>
public static enum GS4QueryEvent.QueryType extends Enum<GS4QueryEvent.QueryType>
Enum Constant | Description |
---|---|
BASIC |
Basic query asks only a subset of information, such as motd, game type (hardcoded to
|
FULL |
Full query asks pretty much everything present on this event (only hardcoded values cannot be modified here).
|
Modifier and Type | Method | Description |
---|---|---|
static GS4QueryEvent.QueryType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static GS4QueryEvent.QueryType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GS4QueryEvent.QueryType BASIC
MINECRAFT), map, current players, max players, server port and server motd
public static final GS4QueryEvent.QueryType FULL
public static GS4QueryEvent.QueryType[] values()
for (GS4QueryEvent.QueryType c : GS4QueryEvent.QueryType.values()) System.out.println(c);
public static GS4QueryEvent.QueryType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.