Package net.minecraft.network.message
Record Class MessageSender
java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageSender
- Record Components:
profileId-profilePublicKey-
public record MessageSender(UUID profileId, @Nullable PlayerPublicKey profilePublicKey)
extends Record
The sender, or the source, of a message.
An instance can be obtained via Entity.asMessageSender().
- Mappings:
Namespace Name official rhintermediary net/minecraft/class_7436named net/minecraft/network/message/MessageSenderofficial bintermediary comp_756named profileIdofficial cintermediary comp_918named profilePublicKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageSenderprivate final UUIDThe field for theprofileIdrecord component.private final @Nullable PlayerPublicKeyThe field for theprofilePublicKeyrecord 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.booleanReturns the value of theprofileIdrecord component.Returns the value of theprofilePublicKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
profileId
The field for theprofileIdrecord component. -
profilePublicKey
The field for theprofilePublicKeyrecord component. -
field_39810
- Mappings:
Namespace Name Mixin selector official aLrh;a:Lrh;intermediary field_39810Lnet/minecraft/class_7436;field_39810:Lnet/minecraft/class_7436;named field_39810Lnet/minecraft/network/message/MessageSender;field_39810:Lnet/minecraft/network/message/MessageSender;
-
-
Constructor Details
-
MessageSender
-
-
Method Details
-
method_44831
public boolean method_44831()- Mappings:
Namespace Name Mixin selector official aLrh;a()Zintermediary method_44831Lnet/minecraft/class_7436;method_44831()Znamed method_44831Lnet/minecraft/network/message/MessageSender;method_44831()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. All components in this record class are compared withObjects::equals(Object,Object). -
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
profilePublicKey
Returns the value of theprofilePublicKeyrecord component.- Returns:
- the value of the
profilePublicKeyrecord component
-