Record Class FriendlyByteBufLoginQueryResponse
java.lang.Object
java.lang.Record
net.fabricmc.fabric.impl.networking.payload.FriendlyByteBufLoginQueryResponse
- All Implemented Interfaces:
net.minecraft.network.protocol.login.custom.CustomQueryAnswerPayload
public record FriendlyByteBufLoginQueryResponse(net.minecraft.network.FriendlyByteBuf data)
extends Record
implements net.minecraft.network.protocol.login.custom.CustomQueryAnswerPayload
-
Constructor Summary
ConstructorsConstructorDescriptionFriendlyByteBufLoginQueryResponse(net.minecraft.network.FriendlyByteBuf data) Creates an instance of aFriendlyByteBufLoginQueryResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.FriendlyByteBufdata()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(net.minecraft.network.FriendlyByteBuf buf)
-
Constructor Details
-
FriendlyByteBufLoginQueryResponse
public FriendlyByteBufLoginQueryResponse(net.minecraft.network.FriendlyByteBuf data) Creates an instance of aFriendlyByteBufLoginQueryResponserecord class.- Parameters:
data- the value for thedatarecord component
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
writein interfacenet.minecraft.network.protocol.login.custom.CustomQueryAnswerPayload
-
toString
-
hashCode
-
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). -
data
public net.minecraft.network.FriendlyByteBuf data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-