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 egf$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

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the id record component.
    private final String
    The field for the message record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Query(int int2, String string)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    id()
    Returns the value of the id record component.
    boolean
    idEquals(int id)
     
    Returns the value of the message record component.
    boolean
    Returns whether the query's queried message equals message.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      private final int id
      The field for the id record component.
    • message

      private final String message
      The field for the message record component.
  • Constructor Details

    • Query

      Query(int int2, String string)
  • Method Details

    • idEquals

      public boolean idEquals(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Legf$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

      public boolean messageEquals(String message)
      Returns whether the query's queried message equals message.
      Returns:
      whether the query's queried message equals message
      Mappings:
      Namespace Name Mixin selector
      official a Legf$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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component