Class ServerAddress

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

@Environment(CLIENT) public final class ServerAddress extends Object
Mappings:
Namespace Name
named net/minecraft/client/network/ServerAddress
intermediary net/minecraft/class_639
official ghb
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/network/ServerAddress;LOGGER:Lorg/slf4j/Logger;
      intermediary field_33416 Lnet/minecraft/class_639;field_33416:Lorg/slf4j/Logger;
      official a Lghb;a:Lorg/slf4j/Logger;
    • INVALID

      private static final ServerAddress INVALID
      Mappings:
      Namespace Name Mixin selector
      named INVALID Lnet/minecraft/client/network/ServerAddress;INVALID:Lnet/minecraft/client/network/ServerAddress;
      intermediary field_33418 Lnet/minecraft/class_639;field_33418:Lnet/minecraft/class_639;
      official c Lghb;c:Lghb;
    • hostAndPort

      private final HostAndPort hostAndPort
      Mappings:
      Namespace Name Mixin selector
      named hostAndPort Lnet/minecraft/client/network/ServerAddress;hostAndPort:Lcom/google/common/net/HostAndPort;
      intermediary field_33417 Lnet/minecraft/class_639;field_33417:Lcom/google/common/net/HostAndPort;
      official b Lghb;b:Lcom/google/common/net/HostAndPort;
  • Constructor Details

    • ServerAddress

      public ServerAddress(String host, int port)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/network/ServerAddress;<init>(Ljava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_639;<init>(Ljava/lang/String;I)V
      official <init> Lghb;<init>(Ljava/lang/String;I)V
    • ServerAddress

      private ServerAddress(HostAndPort hostAndPort)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/network/ServerAddress;<init>(Lcom/google/common/net/HostAndPort;)V
      intermediary <init> Lnet/minecraft/class_639;<init>(Lcom/google/common/net/HostAndPort;)V
      official <init> Lghb;<init>(Lcom/google/common/net/HostAndPort;)V
  • Method Details

    • getAddress

      public String getAddress()
      Mappings:
      Namespace Name Mixin selector
      named getAddress Lnet/minecraft/client/network/ServerAddress;getAddress()Ljava/lang/String;
      intermediary method_2952 Lnet/minecraft/class_639;method_2952()Ljava/lang/String;
      official a Lghb;a()Ljava/lang/String;
    • getPort

      public int getPort()
      Mappings:
      Namespace Name Mixin selector
      named getPort Lnet/minecraft/client/network/ServerAddress;getPort()I
      intermediary method_2954 Lnet/minecraft/class_639;method_2954()I
      official b Lghb;b()I
    • parse

      public static ServerAddress parse(String address)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/network/ServerAddress;parse(Ljava/lang/String;)Lnet/minecraft/client/network/ServerAddress;
      intermediary method_2950 Lnet/minecraft/class_639;method_2950(Ljava/lang/String;)Lnet/minecraft/class_639;
      official a Lghb;a(Ljava/lang/String;)Lghb;
    • isValid

      public static boolean isValid(String address)
      Mappings:
      Namespace Name Mixin selector
      named isValid Lnet/minecraft/client/network/ServerAddress;isValid(Ljava/lang/String;)Z
      intermediary method_36224 Lnet/minecraft/class_639;method_36224(Ljava/lang/String;)Z
      official b Lghb;b(Ljava/lang/String;)Z
    • portOrDefault

      static int portOrDefault(String port)
      Mappings:
      Namespace Name Mixin selector
      named portOrDefault Lnet/minecraft/client/network/ServerAddress;portOrDefault(Ljava/lang/String;)I
      intermediary method_2951 Lnet/minecraft/class_639;method_2951(Ljava/lang/String;)I
      official c Lghb;c(Ljava/lang/String;)I
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/client/network/ServerAddress;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_639;equals(Ljava/lang/Object;)Z
      official equals Lghb;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object