Class ClientboundPlayerInfoPacket.PlayerUpdate

java.lang.Object
net.minecraft.network.protocol.game.ClientboundPlayerInfoPacket.PlayerUpdate
Enclosing class:
ClientboundPlayerInfoPacket

public static class ClientboundPlayerInfoPacket.PlayerUpdate extends Object
  • Field Details

    • latency

      private final int latency
    • gameMode

      private final GameType gameMode
    • profile

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

      @Nullable private final Component displayName
    • profilePublicKey

      @Nullable private final ProfilePublicKey.Data profilePublicKey
  • Constructor Details

    • PlayerUpdate

      public PlayerUpdate(com.mojang.authlib.GameProfile p_237779_, int p_237780_, @Nullable GameType p_237781_, @Nullable Component p_237782_, @Nullable ProfilePublicKey.Data p_237783_)
  • Method Details

    • getProfile

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

      public int getLatency()
    • getGameMode

      public GameType getGameMode()
    • getDisplayName

      @Nullable public Component getDisplayName()
    • getProfilePublicKey

      @Nullable public ProfilePublicKey.Data getProfilePublicKey()
    • toString

      public String toString()
      Overrides:
      toString in class Object