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 fev$aintermediary net/minecraft/class_7594$class_7627named net/minecraft/client/network/message/MessageHandler$ProcessableMessageofficial aintermediary comp_1034named signatureofficial bintermediary comp_1035named handler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BooleanSupplierThe field for thehandlerrecord component.private final @Nullable MessageSignatureDataThe field for thesignaturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProcessableMessage(@Nullable MessageSignatureData messageSignatureData, BooleanSupplier booleanSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept()If this is not processed yet, adds the message to the hud; otherwise, processes the message header without adding to the hud.final booleanIndicates whether some other object is "equal to" this one.handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesignaturerecord component.final StringtoString()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 official aLfev$a;a()Zintermediary method_45750Lnet/minecraft/class_7594$class_7627;method_45750()Znamed acceptLnet/minecraft/client/network/message/MessageHandler$ProcessableMessage;accept()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 thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-