Skip to content

@minecraft/server


@minecraft/server / HotbarEventOptions

Interface: HotbarEventOptions ​

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

Contains additional filtering options for hotbar events.

Properties ​

allowedSlots? ​

optional allowedSlots?: number[]

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

Remarks ​

The slot indexes to consider. Values should be between 0 and 8, inclusive. If not specified, all slots are considered.

Bounds: [0, 8]