Class ServerAddress

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

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

    • address

      private final String address
      Mappings:
      Namespace Name Mixin selector
      official a Leed;a:Ljava/lang/String;
      intermediary field_3734 Lnet/minecraft/class_639;field_3734:Ljava/lang/String;
      named address Lnet/minecraft/network/ServerAddress;address:Ljava/lang/String;
    • port

      private final int port
      Mappings:
      Namespace Name Mixin selector
      official b Leed;b:I
      intermediary field_3735 Lnet/minecraft/class_639;field_3735:I
      named port Lnet/minecraft/network/ServerAddress;port:I
  • Constructor Details

    • ServerAddress

      private ServerAddress​(String address, int int2)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leed;<init>(Ljava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_639;<init>(Ljava/lang/String;I)V
      named <init> Lnet/minecraft/network/ServerAddress;<init>(Ljava/lang/String;I)V
  • Method Details

    • getAddress

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

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

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

      private static com.mojang.datafixers.util.Pair<String,​Integer> resolveServer​(String address)
      Mappings:
      Namespace Name Mixin selector
      official b Leed;b(Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;
      intermediary method_2953 Lnet/minecraft/class_639;method_2953(Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;
      named resolveServer Lnet/minecraft/network/ServerAddress;resolveServer(Ljava/lang/String;)Lcom/mojang/datafixers/util/Pair;
    • portOrDefault

      private static int portOrDefault​(String port, int def)
      Mappings:
      Namespace Name Mixin selector
      official a Leed;a(Ljava/lang/String;I)I
      intermediary method_2951 Lnet/minecraft/class_639;method_2951(Ljava/lang/String;I)I
      named portOrDefault Lnet/minecraft/network/ServerAddress;portOrDefault(Ljava/lang/String;I)I