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 PlayerAuth
hide
- whether to teleport player to spawn (provided in config) or last recorded positionpublic java.lang.String getFakeUuid()
getFakeUuid
in interface PlayerAuth
public void setAuthenticated(boolean authenticated)
setAuthenticated
in interface PlayerAuth
authenticated
- whether player should be authenticatedpublic net.minecraft.text.Text getAuthMessage()
getAuthMessage
in interface PlayerAuth
public boolean canSkipAuth()
canSkipAuth
in interface PlayerAuth
public boolean isUsingMojangAccount()
isUsingMojangAccount
in interface PlayerAuth
public boolean isAuthenticated()
isAuthenticated
in interface PlayerAuth