Interface PlayerLookup.Query
- Enclosing interface:
- PlayerLookup
@Immutable
public static sealed interface PlayerLookup.Query
A query for looking up players.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerLookup.Query.Builderbuilder()Creates a new query builder.default Set<PlayerLookup.Field>The fields to take into account when searching.getInput()default booleanWhether to return a singular result if a exact match is found.static PlayerLookup.QueryCreates a simple query with the given input.
-
Method Details
-
of
Creates a simple query with the given input.- Parameters:
input- the input- Returns:
- the created query
-
builder
Creates a new query builder. -
getInput
String getInput() -
getFields
The fields to take into account when searching. Defaults toPlayerLookup.Field.NAMEandPlayerLookup.Field.ENTITY_ID. -
isMatchExact
@Default default boolean isMatchExact()Whether to return a singular result if a exact match is found. Defaults totrue.
-