Class ServerAddress


  • public class ServerAddress
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String host  
      private int port  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ServerAddress​(java.lang.String p_i1192_1_, int p_i1192_2_)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()  
      int getPort()  
      private static com.mojang.datafixers.util.Pair<java.lang.String,​java.lang.Integer> lookupSrv​(java.lang.String p_241677_0_)  
      private static int parseInt​(java.lang.String p_78862_0_, int p_78862_1_)  
      static ServerAddress parseString​(java.lang.String p_78860_0_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • host

        private final java.lang.String host
      • port

        private final int port
    • Constructor Detail

      • ServerAddress

        private ServerAddress​(java.lang.String p_i1192_1_,
                              int p_i1192_2_)
    • Method Detail

      • getHost

        public java.lang.String getHost()
      • getPort

        public int getPort()
      • parseString

        public static ServerAddress parseString​(java.lang.String p_78860_0_)
      • lookupSrv

        private static com.mojang.datafixers.util.Pair<java.lang.String,​java.lang.Integer> lookupSrv​(java.lang.String p_241677_0_)
      • parseInt

        private static int parseInt​(java.lang.String p_78862_0_,
                                    int p_78862_1_)