Class ServerAddress

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

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

    • LOGGER

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

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

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

    • ServerAddress

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

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

    • getAddress

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

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

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object