Class ClientboundCustomPayloadPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundCustomPayloadPacket(@NonNull net.kyori.adventure.key.Key channel, byte @NonNull [] data) ClientboundCustomPayloadPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull net.kyori.adventure.key.Keybyte @NonNull []getData()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundCustomPayloadPacketwithChannel(@NonNull net.kyori.adventure.key.Key channel) @NonNull ClientboundCustomPayloadPacketwithData(byte @NonNull [] data) 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
-
ClientboundCustomPayloadPacket
-
ClientboundCustomPayloadPacket
public ClientboundCustomPayloadPacket(@NonNull @NonNull net.kyori.adventure.key.Key channel, byte @NonNull [] data)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getChannel
@NonNull public @NonNull net.kyori.adventure.key.Key getChannel() -
getData
public byte @NonNull [] getData() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withChannel
public @NonNull ClientboundCustomPayloadPacket 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).
-