Package net.minecraft.network.chat
Record Class MessageSigner
java.lang.Object
java.lang.Record
net.minecraft.network.chat.MessageSigner
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessageSigner(UUID profileId, Instant timeStamp, long salt) Creates an instance of aMessageSignerrecord class.MessageSigner(FriendlyByteBuf p_241430_) -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageSignerfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSystem()Returns the value of theprofileIdrecord component.longsalt()Returns the value of thesaltrecord component.static MessageSignersystem()Returns the value of thetimeStamprecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_241475_)
-
Field Details
-
profileId
The field for theprofileIdrecord component. -
timeStamp
The field for thetimeStamprecord component. -
salt
private final long saltThe field for thesaltrecord component.
-
-
Constructor Details
-
MessageSigner
-
MessageSigner
Creates an instance of aMessageSignerrecord class.- Parameters:
profileId- the value for theprofileIdrecord componenttimeStamp- the value for thetimeStamprecord componentsalt- the value for thesaltrecord component
-
-
Method Details
-
create
-
system
-
write
-
isSystem
public boolean isSystem() -
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 '=='. -
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
timeStamp
Returns the value of thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-
salt
public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-