Class ServerAddress

java.lang.Object
net.minecraft.client.multiplayer.resolver.ServerAddress

public final class ServerAddress extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • hostAndPort

      private final com.google.common.net.HostAndPort hostAndPort
    • INVALID

      private static final ServerAddress INVALID
  • Constructor Details

    • ServerAddress

      public ServerAddress(String p_171861_, int p_171862_)
    • ServerAddress

      private ServerAddress(com.google.common.net.HostAndPort p_171859_)
  • Method Details

    • getHost

      public String getHost()
    • getPort

      public int getPort()
    • parseString

      public static ServerAddress parseString(String p_171865_)
    • isValidAddress

      public static boolean isValidAddress(String p_171868_)
    • parsePort

      static int parsePort(String p_171870_)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object p_171872_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object