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

    接口 EntityItemPickupEventOptions实验性

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

    interface EntityItemPickupEventOptions {
        entityFilter?: EntityFilter;
        itemFilter?: ItemFilter;
    }
    索引

    属性

    entityFilter?: EntityFilter

    If this value is set, this event will only fire for entities that match.

    itemFilter?: ItemFilter

    If this value is set, this event will only fire if an item in the event matches.