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 egi$aintermediary net/minecraft/class_7516$class_7480named net/minecraft/client/network/ChatPreviewRequester$Queryofficial aintermediary comp_824named idofficial bintermediary comp_825named message
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.intid()Returns the value of theidrecord component.booleanidEquals(int id) message()Returns the value of themessagerecord component.booleanmessageEquals(String message) Returns whether the query's queried message equalsmessage.final StringtoString()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 aLegi$a;a(I)Zintermediary method_44043Lnet/minecraft/class_7516$class_7480;method_44043(I)Znamed idEqualsLnet/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 aLegi$a;a(Ljava/lang/String;)Zintermediary method_44044Lnet/minecraft/class_7516$class_7480;method_44044(Ljava/lang/String;)Znamed messageEqualsLnet/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 theidrecord component.- Returns:
- the value of the
idrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-