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