Interface PlayerLocator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PlayerLocator
Service for finding which server a player is currently connected to.
  • Method Summary

    Modifier and Type
    Method
    Description
    locate(UUID player)
    Resolves the server target for a player UUID.
  • Method Details

    • locate

      Resolves the server target for a player UUID.
      Parameters:
      player - the UUID of the player to locate
      Returns:
      the server target, or empty if the player is offline or not found