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
named net/minecraft/client/network/message/MessageHandler$ProcessableMessage
intermediary net/minecraft/class_7594$class_7627
official ggd$a
named signature
intermediary comp_1034
official a
named handler
intermediary comp_1035
official b
  • 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
      named accept Lnet/minecraft/client/network/message/MessageHandler$ProcessableMessage;accept()Z
      intermediary method_45750 Lnet/minecraft/class_7594$class_7627;method_45750()Z
      official a Lggd$a;a()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