接口 InputEventOptions实验性

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

interface InputEventOptions {
    buttons?: InputButton[];
    state?: ButtonState;
}

属性

buttons?: InputButton[]

The buttons the callback should be called for. If undefined, the callback will be called for all buttons.

state?: ButtonState

The state the callback should be called for. If undefined, the callback will be called for all button states.