Package net.minecraft.network.message
Record Class MessageSender
java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageSender
- Record Components:
uuid
-name
-teamName
-
The sender, or the source, of a message.
An instance can be obtained via Entity.asMessageSender()
.
- Mappings:
Namespace Name official ri
intermediary net/minecraft/class_7436
named net/minecraft/network/message/MessageSender
official a
intermediary comp_756
named uuid
official b
intermediary comp_757
named name
official c
intermediary comp_791
named teamName
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMessageSender
(UUID uuid, Text name) MessageSender
(UUID uUID, Text text, @Nullable Text text2) -
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.name()
Returns the value of thename
record component.static MessageSender
teamName()
Returns the value of theteamName
record component.final String
toString()
Returns a string representation of this record class.uuid()
Returns the value of theuuid
record component.withTeamName
(Text teamName) void
write
(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
MessageSender
- Mappings:
Namespace Name Mixin selector official <init>
Lri;<init>(Ljava/util/UUID;Lrm;)V
intermediary <init>
Lnet/minecraft/class_7436;<init>(Ljava/util/UUID;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/network/message/MessageSender;<init>(Ljava/util/UUID;Lnet/minecraft/text/Text;)V
-
MessageSender
- Mappings:
Namespace Name Mixin selector official <init>
Lri;<init>(Lqx;)V
intermediary <init>
Lnet/minecraft/class_7436;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/message/MessageSender;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
MessageSender
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Lri;a(Lrm;)Lri;
intermediary method_43841
Lnet/minecraft/class_7436;method_43841(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;
named of
Lnet/minecraft/network/message/MessageSender;of(Lnet/minecraft/text/Text;)Lnet/minecraft/network/message/MessageSender;
-
write
- Mappings:
Namespace Name Mixin selector official a
Lri;a(Lqx;)V
intermediary method_43625
Lnet/minecraft/class_7436;method_43625(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/message/MessageSender;write(Lnet/minecraft/network/PacketByteBuf;)V
-
withTeamName
- Mappings:
Namespace Name Mixin selector official b
Lri;b(Lrm;)Lri;
intermediary method_43842
Lnet/minecraft/class_7436;method_43842(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;
named withTeamName
Lnet/minecraft/network/message/MessageSender;withTeamName(Lnet/minecraft/text/Text;)Lnet/minecraft/network/message/MessageSender;
-
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)
. -
uuid
Returns the value of theuuid
record component.- Returns:
- the value of the
uuid
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
teamName
Returns the value of theteamName
record component.- Returns:
- the value of the
teamName
record component
-