Class ServerInfo

java.lang.Object
net.minecraft.client.network.ServerInfo

@Environment(CLIENT) public class ServerInfo extends Object
Mappings:
Namespace Name
official crj
intermediary net/minecraft/class_485
named net/minecraft/client/network/ServerInfo
  • Field Details

    • name

      public String name
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a:Ljava/lang/String;
      intermediary field_1686 Lnet/minecraft/class_485;field_1686:Ljava/lang/String;
      named name Lnet/minecraft/client/network/ServerInfo;name:Ljava/lang/String;
    • address

      public String address
      Mappings:
      Namespace Name Mixin selector
      official b Lcrj;b:Ljava/lang/String;
      intermediary field_1687 Lnet/minecraft/class_485;field_1687:Ljava/lang/String;
      named address Lnet/minecraft/client/network/ServerInfo;address:Ljava/lang/String;
    • playerCountLabel

      public String playerCountLabel
      Mappings:
      Namespace Name Mixin selector
      official c Lcrj;c:Ljava/lang/String;
      intermediary field_1688 Lnet/minecraft/class_485;field_1688:Ljava/lang/String;
      named playerCountLabel Lnet/minecraft/client/network/ServerInfo;playerCountLabel:Ljava/lang/String;
    • label

      public String label
      Mappings:
      Namespace Name Mixin selector
      official d Lcrj;d:Ljava/lang/String;
      intermediary field_1689 Lnet/minecraft/class_485;field_1689:Ljava/lang/String;
      named label Lnet/minecraft/client/network/ServerInfo;label:Ljava/lang/String;
    • ping

      public long ping
      Mappings:
      Namespace Name Mixin selector
      official e Lcrj;e:J
      intermediary field_1690 Lnet/minecraft/class_485;field_1690:J
      named ping Lnet/minecraft/client/network/ServerInfo;ping:J
    • protocolVersion

      public int protocolVersion
      Mappings:
      Namespace Name Mixin selector
      official f Lcrj;f:I
      intermediary field_5148 Lnet/minecraft/class_485;field_5148:I
      named protocolVersion Lnet/minecraft/client/network/ServerInfo;protocolVersion:I
    • version

      public String version
      Mappings:
      Namespace Name Mixin selector
      official g Lcrj;g:Ljava/lang/String;
      intermediary field_5149 Lnet/minecraft/class_485;field_5149:Ljava/lang/String;
      named version Lnet/minecraft/client/network/ServerInfo;version:Ljava/lang/String;
    • online

      public boolean online
      Mappings:
      Namespace Name Mixin selector
      official h Lcrj;h:Z
      intermediary field_1691 Lnet/minecraft/class_485;field_1691:Z
      named online Lnet/minecraft/client/network/ServerInfo;online:Z
    • playerListSummary

      public String playerListSummary
      Mappings:
      Namespace Name Mixin selector
      official i Lcrj;i:Ljava/lang/String;
      intermediary field_7926 Lnet/minecraft/class_485;field_7926:Ljava/lang/String;
      named playerListSummary Lnet/minecraft/client/network/ServerInfo;playerListSummary:Ljava/lang/String;
    • resourcePackState

      private ServerInfo.ResourcePackState resourcePackState
      Mappings:
      Namespace Name Mixin selector
      official j Lcrj;j:Lcrj$a;
      intermediary field_7927 Lnet/minecraft/class_485;field_7927:Lnet/minecraft/class_485$class_1847;
      named resourcePackState Lnet/minecraft/client/network/ServerInfo;resourcePackState:Lnet/minecraft/client/network/ServerInfo$ResourcePackState;
    • icon

      private String icon
      Mappings:
      Namespace Name Mixin selector
      official k Lcrj;k:Ljava/lang/String;
      intermediary field_7928 Lnet/minecraft/class_485;field_7928:Ljava/lang/String;
      named icon Lnet/minecraft/client/network/ServerInfo;icon:Ljava/lang/String;
    • local

      private boolean local
      Mappings:
      Namespace Name Mixin selector
      official l Lcrj;l:Z
      intermediary field_5150 Lnet/minecraft/class_485;field_5150:Z
      named local Lnet/minecraft/client/network/ServerInfo;local:Z
  • Constructor Details

    • ServerInfo

      public ServerInfo(String name, String address, boolean local)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcrj;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_485;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
      named <init> Lnet/minecraft/client/network/ServerInfo;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
  • Method Details

    • serialize

      public NbtCompound serialize()
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a()Lgy;
      intermediary method_1268 Lnet/minecraft/class_485;method_1268()Lnet/minecraft/class_322;
      named serialize Lnet/minecraft/client/network/ServerInfo;serialize()Lnet/minecraft/nbt/NbtCompound;
    • getResourcePack

      public ServerInfo.ResourcePackState getResourcePack()
      Mappings:
      Namespace Name Mixin selector
      official b Lcrj;b()Lcrj$a;
      intermediary method_6849 Lnet/minecraft/class_485;method_6849()Lnet/minecraft/class_485$class_1847;
      named getResourcePack Lnet/minecraft/client/network/ServerInfo;getResourcePack()Lnet/minecraft/client/network/ServerInfo$ResourcePackState;
    • setResourcePackState

      public void setResourcePackState(ServerInfo.ResourcePackState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a(Lcrj$a;)V
      intermediary method_6846 Lnet/minecraft/class_485;method_6846(Lnet/minecraft/class_485$class_1847;)V
      named setResourcePackState Lnet/minecraft/client/network/ServerInfo;setResourcePackState(Lnet/minecraft/client/network/ServerInfo$ResourcePackState;)V
    • deserialize

      public static ServerInfo deserialize(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a(Lgy;)Lcrj;
      intermediary method_6847 Lnet/minecraft/class_485;method_6847(Lnet/minecraft/class_322;)Lnet/minecraft/class_485;
      named deserialize Lnet/minecraft/client/network/ServerInfo;deserialize(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/client/network/ServerInfo;
    • getIcon

      public String getIcon()
      Mappings:
      Namespace Name Mixin selector
      official c Lcrj;c()Ljava/lang/String;
      intermediary method_6850 Lnet/minecraft/class_485;method_6850()Ljava/lang/String;
      named getIcon Lnet/minecraft/client/network/ServerInfo;getIcon()Ljava/lang/String;
    • setIcon

      public void setIcon(String string)
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a(Ljava/lang/String;)V
      intermediary method_6848 Lnet/minecraft/class_485;method_6848(Ljava/lang/String;)V
      named setIcon Lnet/minecraft/client/network/ServerInfo;setIcon(Ljava/lang/String;)V
    • isLocal

      public boolean isLocal()
      Mappings:
      Namespace Name Mixin selector
      official d Lcrj;d()Z
      intermediary method_4281 Lnet/minecraft/class_485;method_4281()Z
      named isLocal Lnet/minecraft/client/network/ServerInfo;isLocal()Z
    • copyFrom

      public void copyFrom(ServerInfo info)
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a(Lcrj;)V
      intermediary method_6845 Lnet/minecraft/class_485;method_6845(Lnet/minecraft/class_485;)V
      named copyFrom Lnet/minecraft/client/network/ServerInfo;copyFrom(Lnet/minecraft/client/network/ServerInfo;)V