Record Class RealmsNews

java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsNews
Record Components:
newsLink -

@Environment(CLIENT) public record RealmsNews(@Nullable String newsLink) extends Record
Mappings:
Namespace Name
named net/minecraft/client/realms/dto/RealmsNews
intermediary net/minecraft/class_4876
official fyq
named newsLink
intermediary comp_5009
official a
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/dto/RealmsNews;LOGGER:Lorg/slf4j/Logger;
      intermediary field_22598 Lnet/minecraft/class_4876;field_22598:Lorg/slf4j/Logger;
      official b Lfyq;b:Lorg/slf4j/Logger;
  • Constructor Details

    • RealmsNews

      public RealmsNews(@Nullable @Nullable String newsLink)
      Creates an instance of a RealmsNews record class.
      Parameters:
      newsLink - the value for the newsLink record component
  • Method Details

    • parse

      public static RealmsNews parse(String json)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/realms/dto/RealmsNews;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsNews;
      intermediary method_25052 Lnet/minecraft/class_4876;method_25052(Ljava/lang/String;)Lnet/minecraft/class_4876;
      official a Lfyq;a(Ljava/lang/String;)Lfyq;
    • 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.
    • newsLink

      @Nullable public @Nullable String newsLink()
      Returns the value of the newsLink record component.
      Returns:
      the value of the newsLink record component