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$b
intermediary net/minecraft/class_2556$class_7603
named net/minecraft/network/message/MessageType$class_7603
official a
intermediary comp_922
named chatType
official b
intermediary comp_923
named name
official c
intermediary comp_924
named targetName
  • Field Details

    • chatType

      private final int chatType
      The field for the chatType record component.
    • name

      private final Text name
      The field for the name record component.
    • targetName

      @Nullable private final @Nullable Text targetName
      The field for the targetName record component.
  • Constructor Details

  • Method Details

    • method_44841

      public void method_44841(PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official a Lri$b;a(Lqx;)V
      intermediary method_44841 Lnet/minecraft/class_2556$class_7603;method_44841(Lnet/minecraft/class_2540;)V
      named method_44841 Lnet/minecraft/network/message/MessageType$class_7603;method_44841(Lnet/minecraft/network/PacketByteBuf;)V
    • method_44840

      public MessageType.class_7602 method_44840(DynamicRegistryManager dynamicRegistryManager)
      Mappings:
      Namespace Name Mixin selector
      official a Lri$b;a(Lhn;)Lri$a;
      intermediary method_44840 Lnet/minecraft/class_2556$class_7603;method_44840(Lnet/minecraft/class_5455;)Lnet/minecraft/class_2556$class_7602;
      named method_44840 Lnet/minecraft/network/message/MessageType$class_7603;method_44840(Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/network/message/MessageType$class_7602;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • chatType

      public int chatType()
      Returns the value of the chatType record component.
      Returns:
      the value of the chatType record component
    • name

      public Text name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • targetName

      @Nullable public @Nullable Text targetName()
      Returns the value of the targetName record component.
      Returns:
      the value of the targetName record component