Class ServerData

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

public class ServerData extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • name

      public String name
    • ip

      public String ip
    • status

      public Component status
    • motd

      public Component motd
    • players

      @Nullable public ServerStatus.Players players
    • ping

      public long ping
    • protocol

      public int protocol
    • version

      public Component version
    • pinged

      public boolean pinged
    • playerList

      public List<Component> playerList
    • packStatus

      private ServerData.ServerPackStatus packStatus
    • iconBytes

      @Nullable private byte[] iconBytes
    • lan

      private boolean lan
    • enforcesSecureChat

      private boolean enforcesSecureChat
    • forgeData

      public ExtendedServerListData forgeData
  • Constructor Details

    • ServerData

      public ServerData(String p_105375_, String p_105376_, boolean p_105377_)
  • Method Details

    • write

      public CompoundTag write()
    • getResourcePackStatus

      public ServerData.ServerPackStatus getResourcePackStatus()
    • setResourcePackStatus

      public void setResourcePackStatus(ServerData.ServerPackStatus p_105380_)
    • read

      public static ServerData read(CompoundTag p_105386_)
    • getIconBytes

      @Nullable public byte[] getIconBytes()
    • setIconBytes

      public void setIconBytes(@Nullable byte[] p_272760_)
    • isLan

      public boolean isLan()
    • setEnforcesSecureChat

      public void setEnforcesSecureChat(boolean p_242972_)
    • enforcesSecureChat

      public boolean enforcesSecureChat()
    • copyNameIconFrom

      public void copyNameIconFrom(ServerData p_233804_)
    • copyFrom

      public void copyFrom(ServerData p_105382_)