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 rl
intermediary net/minecraft/class_7436
named net/minecraft/network/message/MessageSourceProfile
official b
intermediary comp_756
named profileId
official c
intermediary comp_918
named playerPublicKey
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MessageSourceProfile
private final @Nullable PlayerPublicKey
The field for theplayerPublicKey
record component.private final UUID
The field for theprofileId
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returnstrue
if this source profile does not have the profile ID set.Returns the value of theplayerPublicKey
record component.Returns the value of theprofileId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
profileId
The field for theprofileId
record component. -
playerPublicKey
The field for theplayerPublicKey
record component. -
NONE
- Mappings:
Namespace Name Mixin selector official a
Lrl;a:Lrl;
intermediary field_39810
Lnet/minecraft/class_7436;field_39810:Lnet/minecraft/class_7436;
named NONE
Lnet/minecraft/network/message/MessageSourceProfile;NONE:Lnet/minecraft/network/message/MessageSourceProfile;
-
-
Constructor Details
-
MessageSourceProfile
-
-
Method Details
-
lacksProfileId
public boolean lacksProfileId()Returnstrue
if this source profile does not have the profile ID set.Commands executed from server console or command block use such source profile.
- Returns:
true
if this source profile does not have the profile ID set- Mappings:
Namespace Name Mixin selector official a
Lrl;a()Z
intermediary method_44831
Lnet/minecraft/class_7436;method_44831()Z
named lacksProfileId
Lnet/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 theprofileId
record component.- Returns:
- the value of the
profileId
record component
-
playerPublicKey
Returns the value of theplayerPublicKey
record component.- Returns:
- the value of the
playerPublicKey
record component
-