Class PlayerInfo

java.lang.Object
net.minecraft.client.multiplayer.PlayerInfo

public class PlayerInfo extends Object
  • Field Details

    • profile

      private final com.mojang.authlib.GameProfile profile
    • skinLookup

      private final Supplier<PlayerSkin> skinLookup
    • gameMode

      private GameType gameMode
    • latency

      private int latency
    • tabListDisplayName

      @Nullable private Component tabListDisplayName
    • chatSession

      @Nullable private RemoteChatSession chatSession
    • messageValidator

      private SignedMessageValidator messageValidator
  • Constructor Details

    • PlayerInfo

      public PlayerInfo(com.mojang.authlib.GameProfile p_253609_, boolean p_254409_)
  • Method Details

    • createSkinLookup

      private static Supplier<PlayerSkin> createSkinLookup(com.mojang.authlib.GameProfile p_298306_)
    • getProfile

      public com.mojang.authlib.GameProfile getProfile()
    • getChatSession

      @Nullable public RemoteChatSession getChatSession()
    • getMessageValidator

      public SignedMessageValidator getMessageValidator()
    • hasVerifiableChat

      public boolean hasVerifiableChat()
    • setChatSession

      protected void setChatSession(RemoteChatSession p_249599_)
    • clearChatSession

      protected void clearChatSession(boolean p_254536_)
    • fallbackMessageValidator

      private static SignedMessageValidator fallbackMessageValidator(boolean p_254311_)
    • getGameMode

      public GameType getGameMode()
    • setGameMode

      protected void setGameMode(GameType p_105318_)
    • getLatency

      public int getLatency()
    • setLatency

      protected void setLatency(int p_105314_)
    • getSkin

      public PlayerSkin getSkin()
    • getTeam

      @Nullable public PlayerTeam getTeam()
    • setTabListDisplayName

      public void setTabListDisplayName(@Nullable Component p_105324_)
    • getTabListDisplayName

      @Nullable public Component getTabListDisplayName()