Package net.minecraft.network
Record Class MessageType
java.lang.Object
java.lang.Record
net.minecraft.network.MessageType
- Record Components:
chat-overlay-narration-
public record MessageType(Optional<MessageType.class_7468> chat, Optional<MessageType.class_7468> overlay, Optional<MessageType.class_7466> narration)
extends Record
- Mappings:
Namespace Name official rcintermediary net/minecraft/class_2556named net/minecraft/network/MessageTypeofficial jintermediary comp_792named chatofficial kintermediary comp_793named overlayofficial lintermediary comp_794named narration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<MessageType.class_7468>The field for thechatrecord component.static final RegistryKey<MessageType>static final RegistryKey<MessageType>static final com.mojang.serialization.Codec<MessageType>static final RegistryKey<MessageType>static final RegistryKey<MessageType>private final Optional<MessageType.class_7466>The field for thenarrationrecord component.private final Optional<MessageType.class_7468>The field for theoverlayrecord component.static final RegistryKey<MessageType>static final RegistryKey<MessageType>static final RegistryKey<MessageType>static final RegistryKey<MessageType> -
Constructor Summary
ConstructorsConstructorDescriptionMessageType(Optional<MessageType.class_7468> optional, Optional<MessageType.class_7468> optional2, Optional<MessageType.class_7466> optional3) -
Method Summary
Modifier and TypeMethodDescriptionchat()Returns the value of thechatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static MessageTypemethod_43844(Registry<MessageType> registry) private static RegistryKey<MessageType>method_43845(String string) Returns the value of thenarrationrecord component.overlay()Returns the value of theoverlayrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
chat
The field for thechatrecord component. -
overlay
The field for theoverlayrecord component. -
narration
The field for thenarrationrecord component. -
field_39227
- Mappings:
Namespace Name Mixin selector official aLrc;a:Lcom/mojang/serialization/Codec;intermediary field_39227Lnet/minecraft/class_2556;field_39227:Lcom/mojang/serialization/Codec;named field_39227Lnet/minecraft/network/MessageType;field_39227:Lcom/mojang/serialization/Codec;
-
CHAT
- Mappings:
Namespace Name Mixin selector official bLrc;b:Lzx;intermediary field_11737Lnet/minecraft/class_2556;field_11737:Lnet/minecraft/class_5321;named CHATLnet/minecraft/network/MessageType;CHAT:Lnet/minecraft/util/registry/RegistryKey;
-
SYSTEM
- Mappings:
Namespace Name Mixin selector official cLrc;c:Lzx;intermediary field_11735Lnet/minecraft/class_2556;field_11735:Lnet/minecraft/class_5321;named SYSTEMLnet/minecraft/network/MessageType;SYSTEM:Lnet/minecraft/util/registry/RegistryKey;
-
GAME_INFO
- Mappings:
Namespace Name Mixin selector official dLrc;d:Lzx;intermediary field_11733Lnet/minecraft/class_2556;field_11733:Lnet/minecraft/class_5321;named GAME_INFOLnet/minecraft/network/MessageType;GAME_INFO:Lnet/minecraft/util/registry/RegistryKey;
-
SAY_COMMAND
- Mappings:
Namespace Name Mixin selector official eLrc;e:Lzx;intermediary field_39228Lnet/minecraft/class_2556;field_39228:Lnet/minecraft/class_5321;named SAY_COMMANDLnet/minecraft/network/MessageType;SAY_COMMAND:Lnet/minecraft/util/registry/RegistryKey;
-
MSG_COMMAND
- Mappings:
Namespace Name Mixin selector official fLrc;f:Lzx;intermediary field_39229Lnet/minecraft/class_2556;field_39229:Lnet/minecraft/class_5321;named MSG_COMMANDLnet/minecraft/network/MessageType;MSG_COMMAND:Lnet/minecraft/util/registry/RegistryKey;
-
TEAM_MSG_COMMAND
- Mappings:
Namespace Name Mixin selector official gLrc;g:Lzx;intermediary field_39230Lnet/minecraft/class_2556;field_39230:Lnet/minecraft/class_5321;named TEAM_MSG_COMMANDLnet/minecraft/network/MessageType;TEAM_MSG_COMMAND:Lnet/minecraft/util/registry/RegistryKey;
-
EMOTE_COMMAND
- Mappings:
Namespace Name Mixin selector official hLrc;h:Lzx;intermediary field_39231Lnet/minecraft/class_2556;field_39231:Lnet/minecraft/class_5321;named EMOTE_COMMANDLnet/minecraft/network/MessageType;EMOTE_COMMAND:Lnet/minecraft/util/registry/RegistryKey;
-
TELLRAW_COMMAND
- Mappings:
Namespace Name Mixin selector official iLrc;i:Lzx;intermediary field_39232Lnet/minecraft/class_2556;field_39232:Lnet/minecraft/class_5321;named TELLRAW_COMMANDLnet/minecraft/network/MessageType;TELLRAW_COMMAND:Lnet/minecraft/util/registry/RegistryKey;
-
-
Constructor Details
-
MessageType
public MessageType(Optional<MessageType.class_7468> optional, Optional<MessageType.class_7468> optional2, Optional<MessageType.class_7466> optional3)
-
-
Method Details
-
method_43845
- Mappings:
Namespace Name Mixin selector official aLrc;a(Ljava/lang/String;)Lzx;intermediary method_43845Lnet/minecraft/class_2556;method_43845(Ljava/lang/String;)Lnet/minecraft/class_5321;named method_43845Lnet/minecraft/network/MessageType;method_43845(Ljava/lang/String;)Lnet/minecraft/util/registry/RegistryKey;
-
method_43844
- Mappings:
Namespace Name Mixin selector official aLrc;a(Lhi;)Lrc;intermediary method_43844Lnet/minecraft/class_2556;method_43844(Lnet/minecraft/class_2378;)Lnet/minecraft/class_2556;named method_43844Lnet/minecraft/network/MessageType;method_43844(Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/network/MessageType;
-
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). -
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
overlay
Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-
narration
Returns the value of thenarrationrecord component.- Returns:
- the value of the
narrationrecord component
-