Package net.minecraft.network.chat
Record Class MessageSigner
java.lang.Object
java.lang.Record
net.minecraft.network.chat.MessageSigner
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMessageSigner
(UUID profileId, Instant timeStamp, long salt) Creates an instance of aMessageSigner
record class.MessageSigner
(FriendlyByteBuf p_241430_) -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageSigner
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isSystem()
Returns the value of theprofileId
record component.long
salt()
Returns the value of thesalt
record component.static MessageSigner
system()
Returns the value of thetimeStamp
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_241475_)
-
Field Details
-
profileId
The field for theprofileId
record component. -
timeStamp
The field for thetimeStamp
record component. -
salt
private final long saltThe field for thesalt
record component.
-
-
Constructor Details
-
MessageSigner
-
MessageSigner
Creates an instance of aMessageSigner
record class.- Parameters:
profileId
- the value for theprofileId
record componenttimeStamp
- the value for thetimeStamp
record componentsalt
- the value for thesalt
record 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 theprofileId
record component.- Returns:
- the value of the
profileId
record component
-
timeStamp
Returns the value of thetimeStamp
record component.- Returns:
- the value of the
timeStamp
record component
-
salt
public long salt()Returns the value of thesalt
record component.- Returns:
- the value of the
salt
record component
-