Script API - v1.21.110.26
    Preparing search index...

    Interface PlayerSwingEventOptionsBeta

    An interface that is passed into @minecraft/Server.PlayerSwingStartAfterEvent.subscribe that filters out which events are passed to the provided callback.

    interface PlayerSwingEventOptions {
        heldItemOption?: HeldItemOption;
    }
    Index

    Properties

    Properties

    heldItemOption?: HeldItemOption

    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.