Class ServerboundCustomQueryAnswerPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.serverbound.ServerboundCustomQueryAnswerPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundCustomQueryAnswerPacket(int transactionId) ServerboundCustomQueryAnswerPacket(int transactionId, byte @Nullable [] data) ServerboundCustomQueryAnswerPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte @Nullable []getData()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundCustomQueryAnswerPacketwithData(byte @Nullable [] data) @NonNull ServerboundCustomQueryAnswerPacketwithTransactionId(int transactionId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ServerboundCustomQueryAnswerPacket
public ServerboundCustomQueryAnswerPacket(int transactionId) -
ServerboundCustomQueryAnswerPacket
-
ServerboundCustomQueryAnswerPacket
public ServerboundCustomQueryAnswerPacket(int transactionId, byte @Nullable [] data)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getTransactionId
public int getTransactionId() -
getData
public byte @Nullable [] getData() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withTransactionId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withData
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-