Package net.minecraft.client.realms.dto
Record Class RealmsNews
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsNews
- Record Components:
newsLink-
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsNewsintermediary net/minecraft/class_4876official fyqnamed newsLinkintermediary comp_5009official a
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRealmsNews(@Nullable String newsLink) Creates an instance of aRealmsNewsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newsLink()Returns the value of thenewsLinkrecord component.static RealmsNewsfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
newsLink
The field for thenewsLinkrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/RealmsNews;LOGGER:Lorg/slf4j/Logger;intermediary field_22598Lnet/minecraft/class_4876;field_22598:Lorg/slf4j/Logger;official bLfyq;b:Lorg/slf4j/Logger;
-
-
Constructor Details
-
RealmsNews
Creates an instance of aRealmsNewsrecord class.- Parameters:
newsLink- the value for thenewsLinkrecord component
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/RealmsNews;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsNews;intermediary method_25052Lnet/minecraft/class_4876;method_25052(Ljava/lang/String;)Lnet/minecraft/class_4876;official aLfyq;a(Ljava/lang/String;)Lfyq;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
newsLink
Returns the value of thenewsLinkrecord component.- Returns:
- the value of the
newsLinkrecord component
-