Class ServerboundCustomPayloadPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.serverbound.ServerboundCustomPayloadPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundCustomPayloadPacket(@NonNull net.kyori.adventure.key.Key channel, byte @NonNull [] data) ServerboundCustomPayloadPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull net.kyori.adventure.key.Keybyte @NonNull []getData()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundCustomPayloadPacketwithChannel(@NonNull net.kyori.adventure.key.Key channel) @NonNull ServerboundCustomPayloadPacketwithData(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
isTerminal, shouldRunOnGameThread
-
Constructor Details
-
ServerboundCustomPayloadPacket
public ServerboundCustomPayloadPacket(io.netty.buffer.ByteBuf in) -
ServerboundCustomPayloadPacket
public ServerboundCustomPayloadPacket(@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
public int hashCode() -
toString
-
withChannel
public @NonNull ServerboundCustomPayloadPacket 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).
-