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;
}

Properties

Properties

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.