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 riintermediary net/minecraft/class_7436named net/minecraft/network/message/MessageSenderofficial aintermediary comp_756named uuidofficial bintermediary comp_757named nameofficial cintermediary comp_791named teamName
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessageSender(UUID uuid, Text name) MessageSender(UUID uUID, Text text, @Nullable Text text2) -
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.name()Returns the value of thenamerecord component.static MessageSenderteamName()Returns the value of theteamNamerecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.withTeamName(Text teamName) voidwrite(PacketByteBuf buf)
-
Field Details
-
Constructor Details
-
MessageSender
- Mappings:
Namespace Name Mixin selector official <init>Lri;<init>(Ljava/util/UUID;Lrm;)Vintermediary <init>Lnet/minecraft/class_7436;<init>(Ljava/util/UUID;Lnet/minecraft/class_2561;)Vnamed <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;)Vintermediary <init>Lnet/minecraft/class_7436;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/message/MessageSender;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
MessageSender
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLri;a(Lrm;)Lri;intermediary method_43841Lnet/minecraft/class_7436;method_43841(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;named ofLnet/minecraft/network/message/MessageSender;of(Lnet/minecraft/text/Text;)Lnet/minecraft/network/message/MessageSender;
-
write
- Mappings:
Namespace Name Mixin selector official aLri;a(Lqx;)Vintermediary method_43625Lnet/minecraft/class_7436;method_43625(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/message/MessageSender;write(Lnet/minecraft/network/PacketByteBuf;)V
-
withTeamName
- Mappings:
Namespace Name Mixin selector official bLri;b(Lrm;)Lri;intermediary method_43842Lnet/minecraft/class_7436;method_43842(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;named withTeamNameLnet/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 theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
teamName
Returns the value of theteamNamerecord component.- Returns:
- the value of the
teamNamerecord component
-