Record Class DiscardedQueryAnswerPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.login.custom.DiscardedQueryAnswerPayload
- All Implemented Interfaces:
- CustomQueryAnswerPayload
public record DiscardedQueryAnswerPayload(@Nullable FriendlyByteBuf data)
extends Record
implements CustomQueryAnswerPayload
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FriendlyByteBufThe field for thedatarecord component.static final DiscardedQueryAnswerPayload
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aDiscardedQueryAnswerPayloadrecord class.
- 
Method SummaryModifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_299186_) 
- 
Field Details- 
dataThe field for thedatarecord component.
- 
INSTANCE
 
- 
- 
Constructor Details- 
DiscardedQueryAnswerPayloadpublic DiscardedQueryAnswerPayload()
- 
DiscardedQueryAnswerPayloadCreates an instance of aDiscardedQueryAnswerPayloadrecord class.- Parameters:
- data- the value for the- datarecord component
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- CustomQueryAnswerPayload
 
- 
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).
- 
dataReturns the value of thedatarecord component.- Returns:
- the value of the datarecord component
 
 
-