@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? ​
optionalbuttons?: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? ​
optionalstate?: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.