Record Class BeeDebugPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BeeDebugPayload
- All Implemented Interfaces:
- CustomPacketPayload
public record BeeDebugPayload(BeeDebugPayload.BeeInfo beeInfo)
extends Record
implements CustomPacketPayload
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BeeDebugPayload.BeeInfoThe field for thebeeInforecord component.static final ResourceLocation
- 
Constructor SummaryConstructorsConstructorDescriptionBeeDebugPayload(FriendlyByteBuf p_297658_) BeeDebugPayload(BeeDebugPayload.BeeInfo beeInfo) Creates an instance of aBeeDebugPayloadrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbeeInfo()Returns the value of thebeeInforecord 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_300191_) 
- 
Field Details- 
beeInfoThe field for thebeeInforecord component.
- 
ID
 
- 
- 
Constructor Details- 
BeeDebugPayload
- 
BeeDebugPayloadCreates an instance of aBeeDebugPayloadrecord class.- Parameters:
- beeInfo- the value for the- beeInforecord 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).
- 
beeInfoReturns the value of thebeeInforecord component.- Returns:
- the value of the beeInforecord component
 
 
-