Class ClientboundStoreCookiePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundStoreCookiePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundStoreCookiePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ClientboundStoreCookiePacket(net.kyori.adventure.key.Key key, byte[] payload) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleannet.kyori.adventure.key.KeygetKey()byte[]inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundStoreCookiePacketwithKey(net.kyori.adventure.key.Key key) @NonNull ClientboundStoreCookiePacketwithPayload(byte[] payload) 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, isTerminal
-
Constructor Details
-
ClientboundStoreCookiePacket
-
ClientboundStoreCookiePacket
public ClientboundStoreCookiePacket(net.kyori.adventure.key.Key key, byte[] payload)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getKey
public net.kyori.adventure.key.Key getKey() -
getPayload
public byte[] getPayload() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withKey
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPayload
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-