Package net.minecraft.client.realms.dto
Record Class RealmsNotification.UrlButton
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsNotification.UrlButton
- Record Components:
url-urlText-
- Enclosing class:
RealmsNotification
@Environment(CLIENT)
private static record RealmsNotification.UrlButton(String url, RealmsText urlText)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsNotification$UrlButtonintermediary net/minecraft/class_8204$class_8815official fco$bnamed urlintermediary comp_1974official anamed urlTextintermediary comp_1975official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static RealmsNotification.UrlButtonfromJson(JsonObject json) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.urlText()Returns the value of theurlTextrecord component.
-
Field Details
-
url
The field for theurlrecord component. -
urlText
The field for theurlTextrecord component. -
URL_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named URL_KEYLnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;URL_KEY:Ljava/lang/String;intermediary field_46548Lnet/minecraft/class_8204$class_8815;field_46548:Ljava/lang/String;official cLfco$b;c:Ljava/lang/String;
-
URL_TEXT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named URL_TEXT_KEYLnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;URL_TEXT_KEY:Ljava/lang/String;intermediary field_46549Lnet/minecraft/class_8204$class_8815;field_46549:Ljava/lang/String;official dLfco$b;d:Ljava/lang/String;
-
-
Constructor Details
-
UrlButton
-
-
Method Details
-
fromJson
- Mappings:
Namespace Name Mixin selector named fromJsonLnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;intermediary method_54113Lnet/minecraft/class_8204$class_8815;method_54113(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_8204$class_8815;official aLfco$b;a(Lcom/google/gson/JsonObject;)Lfco$b;
-
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). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
urlText
Returns the value of theurlTextrecord component.- Returns:
- the value of the
urlTextrecord component
-