Skip to content

@minecraft/server


@minecraft/server / InputEventOptions

Interface: InputEventOptions ​

Defined in: @minecraft/server/index.d.ts:23999

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

Properties ​

buttons? ​

optional buttons?: InputButton[]

Defined in: @minecraft/server/index.d.ts:24006

Remarks ​

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


state? ​

optional state?: ButtonState

Defined in: @minecraft/server/index.d.ts:24013

Remarks ​

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