Package us.donut.mmc
Class Account
- java.lang.Object
-
- us.donut.mmc.Account
-
public class Account extends Object
Represents a Minecraft account. The account UUID, access token, and certificate are optional.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccount.CertificateRepresents a player certificate which consists of the Mojang provided key-pair used for cryptographically signing chat messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAccessToken()Account.CertificategetCertificate()StringgetUsername()UUIDgetUUID()booleanhasAccessToken()booleanhasCertificate()inthashCode()booleanhasUUID()voidsetAccessToken(String accessToken)voidsetCertificate(Account.Certificate certificate)voidsetUsername(String username)voidsetUUID(UUID uuid)StringtoString()
-
-
-
Constructor Detail
-
Account
public Account(String username)
Constructs a new account with the given username.- Parameters:
username- the username
-
-
Method Detail
-
setUsername
public void setUsername(String username)
-
setUUID
public void setUUID(UUID uuid)
-
setAccessToken
public void setAccessToken(String accessToken)
-
setCertificate
public void setCertificate(Account.Certificate certificate)
-
hasUUID
public boolean hasUUID()
-
hasAccessToken
public boolean hasAccessToken()
-
hasCertificate
public boolean hasCertificate()
-
getUsername
public String getUsername()
-
getUUID
public UUID getUUID()
-
getAccessToken
public String getAccessToken()
-
getCertificate
public Account.Certificate getCertificate()
-
-