Package net.minecraft
Record Class class_7479.class_7481
java.lang.Object
java.lang.Record
net.minecraft.class_7479.class_7481
- Record Components:
receivedTimeStamp-query-response-
- Enclosing class:
class_7479
@Environment(CLIENT)
private static record class_7479.class_7481(long receivedTimeStamp, String query, @Nullable Text response)
extends Record
- Mappings:
Namespace Name official efo$bintermediary net/minecraft/class_7479$class_7481named net/minecraft/class_7479$class_7481official aintermediary comp_826named receivedTimeStampofficial bintermediary comp_827named queryofficial cintermediary comp_828named response
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thequeryrecord component.private final longThe field for thereceivedTimeStamprecord component.The field for theresponserecord component. -
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.booleanmethod_44045(String string) query()Returns the value of thequeryrecord component.longReturns the value of thereceivedTimeStamprecord component.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
receivedTimeStamp
private final long receivedTimeStampThe field for thereceivedTimeStamprecord component. -
query
The field for thequeryrecord component. -
response
The field for theresponserecord component.
-
-
Constructor Details
-
class_7481
-
-
Method Details
-
method_44045
- Mappings:
Namespace Name Mixin selector official aLefo$b;a(Ljava/lang/String;)Zintermediary method_44045Lnet/minecraft/class_7479$class_7481;method_44045(Ljava/lang/String;)Znamed method_44045Lnet/minecraft/class_7479$class_7481;method_44045(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 '=='. -
receivedTimeStamp
public long receivedTimeStamp()Returns the value of thereceivedTimeStamprecord component.- Returns:
- the value of the
receivedTimeStamprecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-