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