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 Summary
Modifier and TypeFieldDescriptionprivate final BooleanSupplier
The field for thehandler
record component.private final @Nullable MessageSignatureData
The field for thesignature
record component. -
Constructor Summary
ConstructorDescriptionProcessableMessage
(@Nullable MessageSignatureData messageSignatureData, BooleanSupplier booleanSupplier) -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept()
If this is not processed yet, adds the message to the hud; otherwise, processes the message header without adding to the hud.final boolean
Indicates whether some other object is "equal to" this one.handler()
Returns the value of thehandler
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesignature
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ProcessableMessage
ProcessableMessage(@Nullable @Nullable MessageSignatureData messageSignatureData, BooleanSupplier booleanSupplier)
-
-
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
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)
. -
signature
Returns the value of thesignature
record component.- Returns:
- the value of the
signature
record component
-
handler
Returns the value of thehandler
record component.- Returns:
- the value of the
handler
record component
-