Record Class RealmsServerAddress

java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsServerAddress
Record Components:
address -
resourcePackUrl -
resourcePackHash -
regionData -
All Implemented Interfaces:
RealmsSerializable

@Environment(CLIENT) public record RealmsServerAddress(@Nullable String address, @Nullable String resourcePackUrl, @Nullable String resourcePackHash, RealmsServerAddress.RegionData regionData) extends Record implements RealmsSerializable
Mappings:
Namespace Name
named net/minecraft/client/realms/dto/RealmsServerAddress
intermediary net/minecraft/class_11459
official fps
named address
intermediary comp_4365
official a
named resourcePackUrl
intermediary comp_4366
official b
named resourcePackHash
intermediary comp_4367
official c
named regionData
intermediary comp_4368
official d
  • Field Details

    • address

      @SerializedName("address") @Nullable private final @Nullable String address
      The field for the address record component.
    • resourcePackUrl

      @SerializedName("resourcePackUrl") @Nullable private final @Nullable String resourcePackUrl
      The field for the resourcePackUrl record component.
    • resourcePackHash

      @SerializedName("resourcePackHash") @Nullable private final @Nullable String resourcePackHash
      The field for the resourcePackHash record component.
    • regionData

      @SerializedName("sessionRegionData") @Nullable private final RealmsServerAddress.RegionData regionData
      The field for the regionData record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/dto/RealmsServerAddress;LOGGER:Lorg/slf4j/Logger;
      intermediary field_60676 Lnet/minecraft/class_11459;field_60676:Lorg/slf4j/Logger;
      official e Lfps;e:Lorg/slf4j/Logger;
    • NULL

      private static final RealmsServerAddress NULL
      Mappings:
      Namespace Name Mixin selector
      named NULL Lnet/minecraft/client/realms/dto/RealmsServerAddress;NULL:Lnet/minecraft/client/realms/dto/RealmsServerAddress;
      intermediary field_60677 Lnet/minecraft/class_11459;field_60677:Lnet/minecraft/class_11459;
      official f Lfps;f:Lfps;
  • Constructor Details

  • Method Details

    • parse

      public static RealmsServerAddress parse(CheckedGson gson, String json)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/realms/dto/RealmsServerAddress;parse(Lnet/minecraft/client/realms/CheckedGson;Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsServerAddress;
      intermediary method_71782 Lnet/minecraft/class_11459;method_71782(Lnet/minecraft/class_4869;Ljava/lang/String;)Lnet/minecraft/class_11459;
      official a Lfps;a(Lfpj;Ljava/lang/String;)Lfps;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • address

      @SerializedName("address") @Nullable public @Nullable String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • resourcePackUrl

      @SerializedName("resourcePackUrl") @Nullable public @Nullable String resourcePackUrl()
      Returns the value of the resourcePackUrl record component.
      Returns:
      the value of the resourcePackUrl record component
    • resourcePackHash

      @SerializedName("resourcePackHash") @Nullable public @Nullable String resourcePackHash()
      Returns the value of the resourcePackHash record component.
      Returns:
      the value of the resourcePackHash record component
    • regionData

      @SerializedName("sessionRegionData") @Nullable public @Nullable RealmsServerAddress.RegionData regionData()
      Returns the value of the regionData record component.
      Returns:
      the value of the regionData record component