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
  • Constructor Details

    • PlayerUpdate

      public PlayerUpdate(com.mojang.authlib.GameProfile p_179141_, int p_179142_, @Nullable GameType p_179143_, @Nullable Component p_179144_)
  • Method Details

    • getProfile

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

      public int getLatency()
    • getGameMode

      public GameType getGameMode()
    • getDisplayName

      @Nullable public Component getDisplayName()
    • toString

      public String toString()
      Overrides:
      toString in class Object