Package net.minecraft.client.gui.chat
Record Class ClientChatPreview.Preview
java.lang.Object
java.lang.Record
net.minecraft.client.gui.chat.ClientChatPreview.Preview
- Enclosing class:
- ClientChatPreview
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.(package private) boolean
query()
Returns the value of thequery
record component.private boolean
queryEquals
(String p_242232_) long
Returns the value of thereceivedTimeStamp
record component.response()
Returns the value of theresponse
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
receivedTimeStamp
private final long receivedTimeStampThe field for thereceivedTimeStamp
record component. -
query
The field for thequery
record component. -
response
The field for theresponse
record component.
-
-
Constructor Details
-
Preview
Creates an instance of aPreview
record class.- Parameters:
receivedTimeStamp
- the value for thereceivedTimeStamp
record componentquery
- the value for thequery
record componentresponse
- the value for theresponse
record component
-
-
Method Details
-
queryEquals
-
canPull
-
isPreviewValid
boolean isPreviewValid() -
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 '=='. -
receivedTimeStamp
public long receivedTimeStamp()Returns the value of thereceivedTimeStamp
record component.- Returns:
- the value of the
receivedTimeStamp
record component
-
query
Returns the value of thequery
record component.- Returns:
- the value of the
query
record component
-
response
Returns the value of theresponse
record component.- Returns:
- the value of the
response
record component
-