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 boolean
private final Supplier
<PlayerSkin> private Component
When this is non-null, it is displayed instead of the player's real nameprivate int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearChatSession
(boolean pEnforcesSecureChat) private static Supplier
<PlayerSkin> createSkinLookup
(com.mojang.authlib.GameProfile p_295736_) private static SignedMessageValidator
fallbackMessageValidator
(boolean pEnforeSecureChat) int
com.mojang.authlib.GameProfile
getSkin()
int
getTeam()
boolean
protected void
setChatSession
(RemoteChatSession pChatSession) protected void
setGameMode
(GameType pGameMode) protected void
setLatency
(int pLatency) void
setShowHat
(boolean pShowHat) void
setTabListDisplayName
(Component pDisplayName) void
setTabListOrder
(int pTabListOrder) boolean
showHat()
-
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 -
showHat
private boolean showHat -
chatSession
-
messageValidator
-
tabListOrder
private int tabListOrder
-
-
Constructor Details
-
PlayerInfo
public PlayerInfo(com.mojang.authlib.GameProfile p_253609_, boolean p_254409_)
-
-
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
-
setShowHat
public void setShowHat(boolean pShowHat) -
showHat
public boolean showHat() -
setTabListOrder
public void setTabListOrder(int pTabListOrder) -
getTabListOrder
public int getTabListOrder()
-