Record Class BrainDebugPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BrainDebugPayload
- All Implemented Interfaces:
- CustomPacketPayload
public record BrainDebugPayload(BrainDebugPayload.BrainDump brainDump)
extends Record
implements CustomPacketPayload
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BrainDebugPayload.BrainDumpThe field for thebrainDumprecord component.static final ResourceLocation
- 
Constructor SummaryConstructorsConstructorDescriptionBrainDebugPayload(FriendlyByteBuf p_299558_) BrainDebugPayload(BrainDebugPayload.BrainDump brainDump) Creates an instance of aBrainDebugPayloadrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thebrainDumprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_300305_) 
- 
Field Details- 
brainDumpThe field for thebrainDumprecord component.
- 
ID
 
- 
- 
Constructor Details- 
BrainDebugPayload
- 
BrainDebugPayloadCreates an instance of aBrainDebugPayloadrecord class.- Parameters:
- brainDump- the value for the- brainDumprecord component
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- CustomPacketPayload
 
- 
id- Specified by:
- idin interface- CustomPacketPayload
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
brainDumpReturns the value of thebrainDumprecord component.- Returns:
- the value of the brainDumprecord component
 
 
-