Package net.minecraft.network.message
Record Class MessageSourceProfile
java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageSourceProfile
- Record Components:
profileId-playerPublicKey-
public record MessageSourceProfile(UUID profileId, @Nullable PlayerPublicKey playerPublicKey)
extends Record
A pair of the profile ID and public key of the message's source.
An instance can be obtained via Entity.getMessageSourceProfile().
- Mappings:
Namespace Name official rlintermediary net/minecraft/class_7436named net/minecraft/network/message/MessageSourceProfileofficial bintermediary comp_756named profileIdofficial cintermediary comp_918named playerPublicKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageSourceProfileprivate final @Nullable PlayerPublicKeyThe field for theplayerPublicKeyrecord component.private final UUIDThe field for theprofileIdrecord 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.booleanReturnstrueif this source profile does not have the profile ID set.Returns the value of theplayerPublicKeyrecord component.Returns the value of theprofileIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
profileId
The field for theprofileIdrecord component. -
playerPublicKey
The field for theplayerPublicKeyrecord component. -
NONE
- Mappings:
Namespace Name Mixin selector official aLrl;a:Lrl;intermediary field_39810Lnet/minecraft/class_7436;field_39810:Lnet/minecraft/class_7436;named NONELnet/minecraft/network/message/MessageSourceProfile;NONE:Lnet/minecraft/network/message/MessageSourceProfile;
-
-
Constructor Details
-
MessageSourceProfile
-
-
Method Details
-
lacksProfileId
public boolean lacksProfileId()Returnstrueif this source profile does not have the profile ID set.Commands executed from server console or command block use such source profile.
- Returns:
trueif this source profile does not have the profile ID set- Mappings:
Namespace Name Mixin selector official aLrl;a()Zintermediary method_44831Lnet/minecraft/class_7436;method_44831()Znamed lacksProfileIdLnet/minecraft/network/message/MessageSourceProfile;lacksProfileId()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
-
playerPublicKey
Returns the value of theplayerPublicKeyrecord component.- Returns:
- the value of the
playerPublicKeyrecord component
-