Preview
An interface that is passed into @minecraft/Server.PlayerSwingStartAfterEventSignal.subscribe that filters out which events are passed to the provided callback.
Optional
The held item option that the callback should be called for. If undefined, the callback will be called whether or not the player is holding an item in their hand.
The EntitySwingSource that the callback should be called for. If undefined, the callback will be called for all swing sources.
An interface that is passed into @minecraft/Server.PlayerSwingStartAfterEventSignal.subscribe that filters out which events are passed to the provided callback.