The PlayerSwingStartAfterEvent class in @minecraft/server.
Class in @minecraft/server
import { PlayerSwingStartAfterEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”heldItemStack
Section titled “heldItemStack”read-only optional
readonly heldItemStack?: ItemStack;Types
player
Section titled “player”read-only
readonly player: Player;Types
swingSource
Section titled “swingSource”read-only
readonly swingSource: EntitySwingSource;Types
Used by
Section titled “Used by”PlayerSwingStartAfterEventSignal.subscribe, PlayerSwingStartAfterEventSignal.unsubscribe