Record Class FriendlyByteBufLoginQueryRequestPayload
java.lang.Object
java.lang.Record
net.fabricmc.fabric.impl.networking.payload.FriendlyByteBufLoginQueryRequestPayload
- All Implemented Interfaces:
net.minecraft.network.protocol.login.custom.CustomQueryPayload
public record FriendlyByteBufLoginQueryRequestPayload(net.minecraft.resources.Identifier id, net.minecraft.network.FriendlyByteBuf data)
extends Record
implements net.minecraft.network.protocol.login.custom.CustomQueryPayload
-
Constructor Summary
ConstructorsConstructorDescriptionFriendlyByteBufLoginQueryRequestPayload(net.minecraft.resources.Identifier id, net.minecraft.network.FriendlyByteBuf data) Creates an instance of aFriendlyByteBufLoginQueryRequestPayloadrecord 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.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(net.minecraft.network.FriendlyByteBuf buf)
-
Constructor Details
-
FriendlyByteBufLoginQueryRequestPayload
public FriendlyByteBufLoginQueryRequestPayload(net.minecraft.resources.Identifier id, net.minecraft.network.FriendlyByteBuf data) Creates an instance of aFriendlyByteBufLoginQueryRequestPayloadrecord class.- Parameters:
id- the value for theidrecord componentdata- 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.CustomQueryPayload
-
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). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Specified by:
idin interfacenet.minecraft.network.protocol.login.custom.CustomQueryPayload- Returns:
- the value of the
idrecord component
-
data
public net.minecraft.network.FriendlyByteBuf data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-