Interface Identity


public interface Identity
Interface used to identify players in nLogin.

An instance can be obtained via the Identity class methods.

  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Identity
    ofBedrock(String name, UUID bedrockId)
    Returns an instance of a Bedrock player identity with a given bedrock ID.
    static Identity
    ofKnownName(String knownName)
    Returns an instance of a player identity with a known nickname (with appendix if enabled).
    static Identity
    Returns an instance of an offline player identity.
    static Identity
    ofPremium(String name, UUID mojangId)
    Returns an instance of a premium player identity with a given Mojang ID.
  • Method Details

    • ofKnownName

      @Nonnull static Identity ofKnownName(@Nonnull String knownName)
      Returns an instance of a player identity with a known nickname (with appendix if enabled).
      Parameters:
      knownName - Player name in server.
    • ofOffline

      static Identity ofOffline(@Nonnull String name)
      Returns an instance of an offline player identity.
      Parameters:
      name - Player name.
    • ofPremium

      static Identity ofPremium(@Nonnull String name, @Nonnull UUID mojangId)
      Returns an instance of a premium player identity with a given Mojang ID.
      Parameters:
      name - Player name.
      mojangId - Mojang ID of the identity.
    • ofBedrock

      static Identity ofBedrock(@Nonnull String name, @Nonnull UUID bedrockId)
      Returns an instance of a Bedrock player identity with a given bedrock ID.
      Parameters:
      name - Player name.
      bedrockId - Bedrock ID of the identity.