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 rh
intermediary net/minecraft/class_7436
named net/minecraft/network/message/MessageSender
official b
intermediary comp_756
named profileId
official c
intermediary comp_918
named profilePublicKey
  • Field Details

    • profileId

      private final UUID profileId
      The field for the profileId record component.
    • profilePublicKey

      @Nullable private final @Nullable PlayerPublicKey profilePublicKey
      The field for the profilePublicKey record component.
    • field_39810

      public static final MessageSender field_39810
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a:Lrh;
      intermediary field_39810 Lnet/minecraft/class_7436;field_39810:Lnet/minecraft/class_7436;
      named field_39810 Lnet/minecraft/network/message/MessageSender;field_39810:Lnet/minecraft/network/message/MessageSender;
  • Constructor Details

  • Method Details

    • method_44831

      public boolean method_44831()
      Mappings:
      Namespace Name Mixin selector
      official a Lrh;a()Z
      intermediary method_44831 Lnet/minecraft/class_7436;method_44831()Z
      named method_44831 Lnet/minecraft/network/message/MessageSender;method_44831()Z
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • profileId

      public UUID profileId()
      Returns the value of the profileId record component.
      Returns:
      the value of the profileId record component
    • profilePublicKey

      @Nullable public @Nullable PlayerPublicKey profilePublicKey()
      Returns the value of the profilePublicKey record component.
      Returns:
      the value of the profilePublicKey record component