Class SimplePlayerLookup

java.lang.Object
com.xpdustry.distributor.api.player.SimplePlayerLookup
All Implemented Interfaces:
PlayerLookup

public class SimplePlayerLookup extends Object implements PlayerLookup
A simple player lookup implementation. Supporting PlayerLookup.Field.ENTITY_ID, PlayerLookup.Field.UUID, and PlayerLookup.Field.NAME.
  • Constructor Details

    • SimplePlayerLookup

      public SimplePlayerLookup()
  • Method Details

    • findOnlinePlayers

      public List<mindustry.gen.Player> findOnlinePlayers(Collection<mindustry.gen.Player> players, PlayerLookup.Query query)
      Description copied from interface: PlayerLookup
      Finds online players matching the given query.
      Specified by:
      findOnlinePlayers in interface PlayerLookup
      Parameters:
      players - the players to search
      query - the query
      Returns:
      the matching players
    • findOnlinePlayers

      protected void findOnlinePlayers(Collection<mindustry.gen.Player> players, PlayerLookup.Query query, List<mindustry.gen.Player> result)
    • normalize

      protected String normalize(String string)