Package net.minecraft.network.message
Record Class MessageType.class_7603
java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageType.class_7603
- Record Components:
chatType-name-targetName-
- Enclosing class:
MessageType
public static record MessageType.class_7603(int chatType, Text name, @Nullable Text targetName)
extends Record
- Mappings:
Namespace Name official ri$bintermediary net/minecraft/class_2556$class_7603named net/minecraft/network/message/MessageType$class_7603official aintermediary comp_922named chatTypeofficial bintermediary comp_923named nameofficial cintermediary comp_924named targetName
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thechatTyperecord component.private final TextThe field for thenamerecord component.The field for thetargetNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_7603(int int2, Text text, @Nullable Text text2) class_7603(PacketByteBuf packetByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionintchatType()Returns the value of thechatTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method_44840(DynamicRegistryManager dynamicRegistryManager) voidmethod_44841(PacketByteBuf packetByteBuf) name()Returns the value of thenamerecord component.Returns the value of thetargetNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
chatType
private final int chatTypeThe field for thechatTyperecord component. -
name
The field for thenamerecord component. -
targetName
The field for thetargetNamerecord component.
-
-
Constructor Details
-
class_7603
-
class_7603
-
-
Method Details
-
method_44841
- Mappings:
Namespace Name Mixin selector official aLri$b;a(Lqx;)Vintermediary method_44841Lnet/minecraft/class_2556$class_7603;method_44841(Lnet/minecraft/class_2540;)Vnamed method_44841Lnet/minecraft/network/message/MessageType$class_7603;method_44841(Lnet/minecraft/network/PacketByteBuf;)V
-
method_44840
- Mappings:
Namespace Name Mixin selector official aLri$b;a(Lhn;)Lri$a;intermediary method_44840Lnet/minecraft/class_2556$class_7603;method_44840(Lnet/minecraft/class_5455;)Lnet/minecraft/class_2556$class_7602;named method_44840Lnet/minecraft/network/message/MessageType$class_7603;method_44840(Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/network/message/MessageType$class_7602;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
chatType
public int chatType()Returns the value of thechatTyperecord component.- Returns:
- the value of the
chatTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
targetName
Returns the value of thetargetNamerecord component.- Returns:
- the value of the
targetNamerecord component
-