import type { Registry } from 'sandstone/arguments/generated/registry.ts' import type { NBTObject } from 'sandstone/arguments/nbt.ts' import type { NBTInt, NBTIntArray, NBTList } from 'sandstone' export type Filterable = ({ raw: T, /** * Shown only to players with chat filtering enabled. */ filtered?: T, } | T) export type FlatWeightedEntry = ({ /** * Value: * Range: 0.. */ weight: NBTInt<{ min: 0, }>, } & T) export type FlatWeightedList = Array> export type GlobalPos = { /** * Coordinates of the location in [x, y, z] * * Value: * Array length range: 3 */ pos: NBTIntArray<{ leftExclusive: false, rightExclusive: false, min: 3, max: 3, }>, /** * Dimension of the location */ dimension: Registry['minecraft:dimension'], } export type InclusiveRange = (T | NBTList | { min_inclusive: T, max_inclusive: T, }) export type NonEmptyFlatWeightedList = NBTList, { leftExclusive: false, min: 1, }> export type NonEmptyWeightedList = NBTList, { leftExclusive: false, min: 1, }> export type Rotation = ('none' | 'clockwise_90' | '180' | 'counterclockwise_90') export type WeightedEntry = { /** * Value: * Range: 0.. */ weight: NBTInt<{ min: 0, }>, data: T, } export type WeightedList = Array>