@minecraft
    正在准备搜索索引...

    接口 PlayerSwingEventOptions实验性

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

    interface PlayerSwingEventOptions {
        heldItemOption?: HeldItemOption;
    }
    索引

    属性

    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.