Package net.minecraft.client.multiplayer
Class PlayerInfo
java.lang.Object
net.minecraft.client.multiplayer.PlayerInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RemoteChatSession
private GameType
private int
private SignedMessageValidator
private final com.mojang.authlib.GameProfile
The GameProfile for the player represented by this NetworkPlayerInfo instanceprivate final Supplier
<PlayerSkin> private Component
When this is non-null, it is displayed instead of the player's real name -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInfo
(com.mojang.authlib.GameProfile profile, boolean enforeSecureChat) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearChatSession
(boolean enforcesSecureChat) private static Supplier
<PlayerSkin> createSkinLookup
(com.mojang.authlib.GameProfile profile) private static SignedMessageValidator
fallbackMessageValidator
(boolean enforeSecureChat) int
com.mojang.authlib.GameProfile
getSkin()
getTeam()
boolean
protected void
setChatSession
(RemoteChatSession chatSession) protected void
setGameMode
(GameType gameMode) protected void
setLatency
(int latency) void
setTabListDisplayName
(Component displayName)
-
Field Details
-
profile
private final com.mojang.authlib.GameProfile profileThe GameProfile for the player represented by this NetworkPlayerInfo instance -
skinLookup
-
gameMode
-
latency
private int latency -
tabListDisplayName
When this is non-null, it is displayed instead of the player's real name -
chatSession
-
messageValidator
-
-
Constructor Details
-
PlayerInfo
public PlayerInfo(com.mojang.authlib.GameProfile profile, boolean enforeSecureChat)
-
-
Method Details
-
createSkinLookup
-
getProfile
public com.mojang.authlib.GameProfile getProfile() -
getChatSession
-
getMessageValidator
-
hasVerifiableChat
public boolean hasVerifiableChat() -
setChatSession
-
clearChatSession
protected void clearChatSession(boolean enforcesSecureChat) -
fallbackMessageValidator
-
getGameMode
-
setGameMode
-
getLatency
public int getLatency() -
setLatency
protected void setLatency(int latency) -
getSkin
-
getTeam
-
setTabListDisplayName
-
getTabListDisplayName
-