public class MixinServerPlayerEntity extends java.lang.Object implements PlayerAuth
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.server.MinecraftServer |
server |
| Constructor and Description |
|---|
MixinServerPlayerEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSkipAuth()
Checks whether player can skip authentication process.
|
net.minecraft.text.Text |
getAuthMessage()
Gets the text which tells the player
to login or register, depending on account status.
|
java.lang.String |
getFakeUuid()
Converts player uuid, to ensure player with "nAmE" and "NamE" get same uuid.
|
void |
hidePosition(boolean hide)
Teleports player to spawn or last location that is recorded.
|
boolean |
isAuthenticated()
Checks whether player is authenticated.
|
boolean |
isUsingMojangAccount()
Whether the player is using the mojang account.
|
void |
setAuthenticated(boolean authenticated)
Sets the authentication status of the player
and hides coordinates if needed.
|
public void hidePosition(boolean hide)
hidePosition in interface PlayerAuthhide - whether to teleport player to spawn (provided in config) or last recorded positionpublic java.lang.String getFakeUuid()
getFakeUuid in interface PlayerAuthpublic void setAuthenticated(boolean authenticated)
setAuthenticated in interface PlayerAuthauthenticated - whether player should be authenticatedpublic net.minecraft.text.Text getAuthMessage()
getAuthMessage in interface PlayerAuthpublic boolean canSkipAuth()
canSkipAuth in interface PlayerAuthpublic boolean isUsingMojangAccount()
isUsingMojangAccount in interface PlayerAuthpublic boolean isAuthenticated()
isAuthenticated in interface PlayerAuth