Class PlayerInfo
java.lang.Object
net.minecraft.client.multiplayer.PlayerInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable RemoteChatSessionprivate GameTypeprivate intprivate SignedMessageValidatorprivate final GameProfileprivate booleanprivate @Nullable Supplier<PlayerSkin> private @Nullable Componentprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearChatSession(boolean enforcesSecureChat) private static Supplier<PlayerSkin> createSkinLookup(GameProfile profile) private static SignedMessageValidatorfallbackMessageValidator(boolean enforcesSecureChat) @Nullable RemoteChatSessionintgetSkin()@Nullable Componentint@Nullable PlayerTeamgetTeam()booleanprotected voidsetChatSession(RemoteChatSession chatSession) protected voidsetGameMode(GameType gameMode) protected voidsetLatency(int latency) voidsetShowHat(boolean showHat) voidsetTabListDisplayName(@Nullable Component tabListDisplayName) voidsetTabListOrder(int tabListOrder) booleanshowHat()
-
Field Details
-
profile
-
skinLookup
-
gameMode
-
latency
private int latency -
tabListDisplayName
-
showHat
private boolean showHat -
chatSession
-
messageValidator
-
tabListOrder
private int tabListOrder
-
-
Constructor Details
-
PlayerInfo
-
-
Method Details
-
createSkinLookup
-
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
-
setShowHat
public void setShowHat(boolean showHat) -
showHat
public boolean showHat() -
setTabListOrder
public void setTabListOrder(int tabListOrder) -
getTabListOrder
public int getTabListOrder()
-