An interface that is passed into @minecraft/Server.PlayerButtonInputAfterEventSignal.subscribe that filters out which events are passed to the provided callback.
export interface InputEventOptions { buttons?: InputButton[]; state?: ButtonState;} Copy
export interface InputEventOptions { buttons?: InputButton[]; state?: ButtonState;}
Optional
The buttons the callback should be called for. If undefined, the callback will be called for all buttons.
The state the callback should be called for. If undefined, the callback will be called for all button states.
An interface that is passed into @minecraft/Server.PlayerButtonInputAfterEventSignal.subscribe that filters out which events are passed to the provided callback.
Source