Record Class MessageHandler.ProcessableMessage

java.lang.Object
java.lang.Record
net.minecraft.client.network.message.MessageHandler.ProcessableMessage
Record Components:
signature -
handler -
Enclosing class:
MessageHandler

@Environment(CLIENT) private static record MessageHandler.ProcessableMessage(@Nullable MessageSignatureData signature, BooleanSupplier handler) extends Record
A message to be processed. An instance is created for each received message.
Mappings:
Namespace Name
official fep$a
intermediary net/minecraft/class_7594$class_7627
named net/minecraft/client/network/message/MessageHandler$ProcessableMessage
official a
intermediary comp_1034
named signature
official b
intermediary comp_1035
named handler
  • Field Details

  • Constructor Details

  • Method Details

    • accept

      public boolean accept()
      If this is not processed yet, adds the message to the hud; otherwise, processes the message header without adding to the hud.
      Mappings:
      Namespace Name Mixin selector
      official a Lfep$a;a()Z
      intermediary method_45750 Lnet/minecraft/class_7594$class_7627;method_45750()Z
      named accept Lnet/minecraft/client/network/message/MessageHandler$ProcessableMessage;accept()Z
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • signature

      Returns the value of the signature record component.
      Returns:
      the value of the signature record component
    • handler

      public BooleanSupplier handler()
      Returns the value of the handler record component.
      Returns:
      the value of the handler record component