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 pProfile, boolean pEnforeSecureChat) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearChatSession
(boolean pEnforcesSecureChat) private static Supplier
<PlayerSkin> createSkinLookup
(com.mojang.authlib.GameProfile pProfile) private static SignedMessageValidator
fallbackMessageValidator
(boolean pEnforeSecureChat) int
com.mojang.authlib.GameProfile
getSkin()
getTeam()
boolean
protected void
setChatSession
(RemoteChatSession pChatSession) protected void
setGameMode
(GameType pGameMode) protected void
setLatency
(int pLatency) void
setTabListDisplayName
(Component pDisplayName)
-
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 pProfile, boolean pEnforeSecureChat)
-
-
Method Details
-
createSkinLookup
-
getProfile
public com.mojang.authlib.GameProfile getProfile() -
getChatSession
-
getMessageValidator
-
hasVerifiableChat
public boolean hasVerifiableChat() -
setChatSession
-
clearChatSession
protected void clearChatSession(boolean pEnforcesSecureChat) -
fallbackMessageValidator
-
getGameMode
-
setGameMode
-
getLatency
public int getLatency() -
setLatency
protected void setLatency(int pLatency) -
getSkin
-
getTeam
-
setTabListDisplayName
-
getTabListDisplayName
-