Class ClientboundCustomQueryPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundCustomQueryPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundCustomQueryPacket(int messageId, @NonNull net.kyori.adventure.key.Key channel, byte @NonNull [] data) ClientboundCustomQueryPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull net.kyori.adventure.key.Keybyte @NonNull []getData()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundCustomQueryPacketwithChannel(@NonNull net.kyori.adventure.key.Key channel) @NonNull ClientboundCustomQueryPacketwithData(byte @NonNull [] data) @NonNull ClientboundCustomQueryPacketwithMessageId(int messageId) 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
-
ClientboundCustomQueryPacket
-
ClientboundCustomQueryPacket
public ClientboundCustomQueryPacket(int messageId, @NonNull @NonNull net.kyori.adventure.key.Key channel, byte @NonNull [] data)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getMessageId
public int getMessageId() -
getChannel
@NonNull public @NonNull net.kyori.adventure.key.Key getChannel() -
getData
public byte @NonNull [] getData() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withMessageId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChannel
public @NonNull ClientboundCustomQueryPacket withChannel(@NonNull @NonNull net.kyori.adventure.key.Key channel) - 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).
-