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) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull net.kyori.adventure.key.Keybyte @NonNull []getData()intinthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundCustomQueryPacketwithChannel(@NonNull net.kyori.adventure.key.Key channel) @NonNull ClientboundCustomQueryPacketwithData(byte @NonNull [] data) @NonNull ClientboundCustomQueryPacketwithMessageId(int messageId) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundCustomQueryPacket
public ClientboundCustomQueryPacket(io.netty.buffer.ByteBuf in) -
ClientboundCustomQueryPacket
public ClientboundCustomQueryPacket(int messageId, @NonNull @NonNull net.kyori.adventure.key.Key channel, byte @NonNull [] data)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - 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
-
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).
-