ClientboundSwingAnimationPacketEvent

class ClientboundSwingAnimationPacketEvent(player: Player, packet: ClientboundSwingAnimationPacket) : PlayerPacketEvent<ClientboundSwingAnimationPacket>

Constructors

Link copied to clipboard
constructor(player: Player, packet: ClientboundSwingAnimationPacket)

Properties

Link copied to clipboard
var animation: SwingAnimation
Link copied to clipboard
Link copied to clipboard
var hand: InteractionHand
Link copied to clipboard

Whether the event is canceled. Packets that are canceled will not be sent or processed by the server.

Link copied to clipboard
var packet: ClientboundSwingAnimationPacket

The packet that is being sent or received.

Link copied to clipboard
val player: Player