Package com.nickuc.login.api.types
Interface Identity
public interface Identity
Interface used to identify players in nLogin.
An instance can be obtained via the Identity
class methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Identity
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
Returns an instance of a premium player identity with a given Mojang ID.
-
Method Details
-
ofKnownName
Returns an instance of a player identity with a known nickname (with appendix if enabled).- Parameters:
knownName
- Player name in server.
-
ofOffline
Returns an instance of an offline player identity.- Parameters:
name
- Player name.
-
ofPremium
Returns an instance of a premium player identity with a given Mojang ID.- Parameters:
name
- Player name.mojangId
- Mojang ID of the identity.
-
ofBedrock
Returns an instance of a Bedrock player identity with a given bedrock ID.- Parameters:
name
- Player name.bedrockId
- Bedrock ID of the identity.
-