Package net.minecraft.network.message
Record Class SentMessage.Chat
java.lang.Object
java.lang.Record
net.minecraft.network.message.SentMessage.Chat
- Record Components:
message-
- All Implemented Interfaces:
SentMessage
- Enclosing interface:
SentMessage
The wrapper used for normal chat messages.
Text filtering can cause some players to not receive this kind of message.
- Mappings:
Namespace Name official tk$bintermediary net/minecraft/class_7604$class_7607named net/minecraft/network/message/SentMessage$Chatofficial aintermediary comp_1082named message
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.message.SentMessage
SentMessage.Chat, SentMessage.Profileless -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SignedMessageThe field for themessagerecord 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.message()Returns the value of themessagerecord component.voidsend(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
message
The field for themessagerecord component.
-
-
Constructor Details
-
Chat
Creates an instance of aChatrecord class.- Parameters:
message- the value for themessagerecord component
-
-
Method Details
-
getContent
- Specified by:
getContentin interfaceSentMessage- Mappings:
Namespace Name Mixin selector official aLtk;a()Lsw;intermediary comp_1081Lnet/minecraft/class_7604;comp_1081()Lnet/minecraft/class_2561;named getContentLnet/minecraft/network/message/SentMessage;getContent()Lnet/minecraft/text/Text;
-
send
public void send(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) - Specified by:
sendin interfaceSentMessage- Mappings:
Namespace Name Mixin selector official aLtk;a(Laig;ZLss$a;)Vintermediary method_45095Lnet/minecraft/class_7604;method_45095(Lnet/minecraft/class_3222;ZLnet/minecraft/class_2556$class_7602;)Vnamed sendLnet/minecraft/network/message/SentMessage;send(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/network/message/MessageType$Parameters;)V
-
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). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-