Class ServerboundCustomClickActionPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.serverbound.ServerboundCustomClickActionPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundCustomClickActionPacket(io.netty.buffer.ByteBuf in) ServerboundCustomClickActionPacket(net.kyori.adventure.key.Key id, com.viaversion.nbt.mini.MNBT payload) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleannet.kyori.adventure.key.KeygetId()com.viaversion.nbt.mini.MNBTinthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundCustomClickActionPacketwithId(net.kyori.adventure.key.Key id) @NonNull ServerboundCustomClickActionPacketwithPayload(com.viaversion.nbt.mini.MNBT payload) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundCustomClickActionPacket
public ServerboundCustomClickActionPacket(io.netty.buffer.ByteBuf in) -
ServerboundCustomClickActionPacket
public ServerboundCustomClickActionPacket(net.kyori.adventure.key.Key id, com.viaversion.nbt.mini.MNBT payload)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getId
public net.kyori.adventure.key.Key getId() -
getPayload
public com.viaversion.nbt.mini.MNBT getPayload() -
equals
-
canEqual
-
hashCode
-
withId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPayload
public @NonNull ServerboundCustomClickActionPacket withPayload(com.viaversion.nbt.mini.MNBT payload) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-