Interface PlayerLookup
- All Known Implementing Classes:
SimplePlayerLookup
public interface PlayerLookup
A simple interface for looking up online players.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe fields to take into account when searching.static interfaceA query for looking up players. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerLookupcreate()Creates a new simple player lookup.default List<mindustry.gen.Player>Finds online players matching the given query.List<mindustry.gen.Player>findOnlinePlayers(Collection<mindustry.gen.Player> players, PlayerLookup.Query query) Finds online players matching the given query.
-
Method Details
-
create
Creates a new simple player lookup.- See Also:
-
findOnlinePlayers
Finds online players matching the given query. Defaults to searching all players.- Parameters:
query- the query- Returns:
- the matching players
-
findOnlinePlayers
List<mindustry.gen.Player> findOnlinePlayers(Collection<mindustry.gen.Player> players, PlayerLookup.Query query) Finds online players matching the given query.- Parameters:
players- the players to searchquery- the query- Returns:
- the matching players
-