Package net.minecraft.client.network
Record Class ChatPreviewRequester.Query
java.lang.Object
java.lang.Record
net.minecraft.client.network.ChatPreviewRequester.Query
- Record Components:
id
-message
- the queried message to preview
- Enclosing class:
ChatPreviewRequester
@Environment(CLIENT)
private static record ChatPreviewRequester.Query(int id, String message)
extends Record
A query, or a request, to the server to send the chat message preview.
- Mappings:
Namespace Name official egg$a
intermediary net/minecraft/class_7516$class_7480
named net/minecraft/client/network/ChatPreviewRequester$Query
official a
intermediary comp_824
named id
official b
intermediary comp_825
named message
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.boolean
idEquals
(int id) message()
Returns the value of themessage
record component.boolean
messageEquals
(String message) Returns whether the query's queried message equalsmessage
.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Query
Query(int int2, String string)
-
-
Method Details
-
idEquals
public boolean idEquals(int id) - Mappings:
Namespace Name Mixin selector official a
Legg$a;a(I)Z
intermediary method_44043
Lnet/minecraft/class_7516$class_7480;method_44043(I)Z
named idEquals
Lnet/minecraft/client/network/ChatPreviewRequester$Query;idEquals(I)Z
-
messageEquals
Returns whether the query's queried message equalsmessage
.- Returns:
- whether the query's queried message equals
message
- Mappings:
Namespace Name Mixin selector official a
Legg$a;a(Ljava/lang/String;)Z
intermediary method_44044
Lnet/minecraft/class_7516$class_7480;method_44044(Ljava/lang/String;)Z
named messageEquals
Lnet/minecraft/client/network/ChatPreviewRequester$Query;messageEquals(Ljava/lang/String;)Z
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-