Package net.minecraft.client.multiplayer
Class PlayerInfo
java.lang.Object
net.minecraft.client.multiplayer.PlayerInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RemoteChatSessionprivate GameTypeprivate intprivate SignedMessageValidatorprivate final com.mojang.authlib.GameProfileThe GameProfile for the player represented by this NetworkPlayerInfo instanceprivate booleanprivate final Supplier<PlayerSkin> private ComponentWhen this is non-null, it is displayed instead of the player's real nameprivate int -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInfo(com.mojang.authlib.GameProfile pProfile, boolean pEnforeSecureChat) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearChatSession(boolean pEnforcesSecureChat) private static Supplier<PlayerSkin> createSkinLookup(com.mojang.authlib.GameProfile pProfile) private static SignedMessageValidatorfallbackMessageValidator(boolean pEnforeSecureChat) intcom.mojang.authlib.GameProfilegetSkin()intgetTeam()booleanprotected voidsetChatSession(RemoteChatSession pChatSession) protected voidsetGameMode(GameType pGameMode) protected voidsetLatency(int pLatency) voidsetShowHat(boolean pShowHat) voidsetTabListDisplayName(Component pDisplayName) voidsetTabListOrder(int pTabListOrder) booleanshowHat()
-
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 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
-
setShowHat
public void setShowHat(boolean pShowHat) -
showHat
public boolean showHat() -
setTabListOrder
public void setTabListOrder(int pTabListOrder) -
getTabListOrder
public int getTabListOrder()
-