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 official erh$b
intermediary net/minecraft/class_8204$class_8815
named net/minecraft/client/realms/dto/RealmsNotification$UrlButton
official a
intermediary comp_1974
named url
official b
intermediary comp_1975
named urlText
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static RealmsNotification.UrlButton
fromJson
(JsonObject json) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.urlText()
Returns the value of theurlText
record component.
-
Field Details
-
url
The field for theurl
record component. -
urlText
The field for theurlText
record component. -
URL_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lerh$b;c:Ljava/lang/String;
intermediary field_46548
Lnet/minecraft/class_8204$class_8815;field_46548:Ljava/lang/String;
named URL_KEY
Lnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;URL_KEY:Ljava/lang/String;
-
URL_TEXT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lerh$b;d:Ljava/lang/String;
intermediary field_46549
Lnet/minecraft/class_8204$class_8815;field_46549:Ljava/lang/String;
named URL_TEXT_KEY
Lnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;URL_TEXT_KEY:Ljava/lang/String;
-
-
Constructor Details
-
UrlButton
-
-
Method Details
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lerh$b;a(Lcom/google/gson/JsonObject;)Lerh$b;
intermediary method_54113
Lnet/minecraft/class_8204$class_8815;method_54113(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_8204$class_8815;
named fromJson
Lnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/realms/dto/RealmsNotification$UrlButton;
-
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 theurl
record component.- Returns:
- the value of the
url
record component
-
urlText
Returns the value of theurlText
record component.- Returns:
- the value of the
urlText
record component
-