@jsprismarine/items 0.23.0-unstable-20261121073620 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @jsprismarine/items
2
2
 
3
- ## 0.23.0-unstable-20261121073620
3
+ ## 0.23.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -17,9 +17,9 @@
17
17
  - [#3288](https://github.com/JSPrismarine/JSPrismarine/pull/3288) [`9b2a5ef`](https://github.com/JSPrismarine/JSPrismarine/commit/9b2a5ef7f5a5167e1913a71799272042b01cf449) Thanks [@filiphsps](https://github.com/filiphsps)! - The generated item type table moved under the release directory, `src/tables/<release>/itemTypes.json`. `generate:item-types` takes `--java <release>` and reads the item table of the Bedrock protocol `sources.json` pairs with it. The package's exports are unchanged and read the default release's table.
18
18
 
19
19
  - [#3288](https://github.com/JSPrismarine/JSPrismarine/pull/3288) [`aa1f193`](https://github.com/JSPrismarine/JSPrismarine/commit/aa1f1937e483ac4faa17bec8065e05c0a05806eb) Thanks [@filiphsps](https://github.com/filiphsps)! - Add the `components/unhandledJavaTypes` module, the reviewed list of Java data component types the item component catalog has no component for. A test checks it against the pinned Java registry report.
20
- - Updated dependencies [[`60edd7a`](https://github.com/JSPrismarine/JSPrismarine/commit/60edd7a1234650367fe5c2406ee402641be33ed9), [`bf419b8`](https://github.com/JSPrismarine/JSPrismarine/commit/bf419b82bfea52c095ca09b02c1c4ac955ac1d0a), [`c8e1685`](https://github.com/JSPrismarine/JSPrismarine/commit/c8e1685ae8316255d39674af9d00ac8d778f674d), [`b41035b`](https://github.com/JSPrismarine/JSPrismarine/commit/b41035be9b61570008b3405aa169418b19081915), [`4bda824`](https://github.com/JSPrismarine/JSPrismarine/commit/4bda8241a8631da2d205133c85fd361871d6cf61), [`7e2e6f3`](https://github.com/JSPrismarine/JSPrismarine/commit/7e2e6f3cff1f20a11a3f59aac94c68a33fa71a35), [`3e71a8d`](https://github.com/JSPrismarine/JSPrismarine/commit/3e71a8dd75bd0a97e0f8587666f60f160844ff0b), [`586269e`](https://github.com/JSPrismarine/JSPrismarine/commit/586269e324cddfe57caf4206f387895cda6d479f), [`5d2fb0e`](https://github.com/JSPrismarine/JSPrismarine/commit/5d2fb0eb3730e59260a09e60c130e57e5fdb099c), [`936970c`](https://github.com/JSPrismarine/JSPrismarine/commit/936970c04f98b392e4b753f3c89224da3d03cb49), [`57caf26`](https://github.com/JSPrismarine/JSPrismarine/commit/57caf2632f92e5da55ce6eedc4eb0be3d66190d4), [`4b590cf`](https://github.com/JSPrismarine/JSPrismarine/commit/4b590cf6c529d17d8df20d8eab9b2157dc213a19), [`349a814`](https://github.com/JSPrismarine/JSPrismarine/commit/349a81448bfc8be2f901efe14527b8c9334f11eb), [`8876fae`](https://github.com/JSPrismarine/JSPrismarine/commit/8876faec0d0cbd4232446e5081338461e420450e), [`56200a6`](https://github.com/JSPrismarine/JSPrismarine/commit/56200a61535d916f0c41a11d077752b194e4c08b), [`c500335`](https://github.com/JSPrismarine/JSPrismarine/commit/c5003358e3a7199593c6ddcdbe4bdf63f8c29fac), [`e090dd7`](https://github.com/JSPrismarine/JSPrismarine/commit/e090dd75379edbfc415d84925e48af29aaa4864e), [`6e758f9`](https://github.com/JSPrismarine/JSPrismarine/commit/6e758f9de80c357c12d992bf473f1bdac86fb274), [`93a1b61`](https://github.com/JSPrismarine/JSPrismarine/commit/93a1b610493f401c4ac62881f70b3dee8c882f33), [`e1c982e`](https://github.com/JSPrismarine/JSPrismarine/commit/e1c982eeed0dfd682b5680c45c69159e21fd9ec0), [`9579362`](https://github.com/JSPrismarine/JSPrismarine/commit/9579362b4070e246d6300d2f4e2dca2ab4715124), [`f18ef7c`](https://github.com/JSPrismarine/JSPrismarine/commit/f18ef7c595f58a267b5371baab96390d0282616d), [`cf88d2f`](https://github.com/JSPrismarine/JSPrismarine/commit/cf88d2f8c2184bd4e116db888d4528fa27f5338d), [`d6c69e4`](https://github.com/JSPrismarine/JSPrismarine/commit/d6c69e43051eb091f0b4a17c0f33799f5944caf3), [`0792e2a`](https://github.com/JSPrismarine/JSPrismarine/commit/0792e2a7e6e5e98729b80df412262fd549ea3cb9), [`1c3be54`](https://github.com/JSPrismarine/JSPrismarine/commit/1c3be5465a2865072ac0f16b4848ee0cd9b6b13a), [`db04d85`](https://github.com/JSPrismarine/JSPrismarine/commit/db04d8520c1d43b88196c14229f36f5c8e71f3c1)]:
21
- - @jsprismarine/errors@0.23.0-unstable-20261121073620
22
- - @jsprismarine/content@0.23.0-unstable-20261121073620
20
+ - Updated dependencies [[`60edd7a`](https://github.com/JSPrismarine/JSPrismarine/commit/60edd7a1234650367fe5c2406ee402641be33ed9), [`bf419b8`](https://github.com/JSPrismarine/JSPrismarine/commit/bf419b82bfea52c095ca09b02c1c4ac955ac1d0a), [`c8e1685`](https://github.com/JSPrismarine/JSPrismarine/commit/c8e1685ae8316255d39674af9d00ac8d778f674d), [`b41035b`](https://github.com/JSPrismarine/JSPrismarine/commit/b41035be9b61570008b3405aa169418b19081915), [`4bda824`](https://github.com/JSPrismarine/JSPrismarine/commit/4bda8241a8631da2d205133c85fd361871d6cf61), [`7e2e6f3`](https://github.com/JSPrismarine/JSPrismarine/commit/7e2e6f3cff1f20a11a3f59aac94c68a33fa71a35), [`3e71a8d`](https://github.com/JSPrismarine/JSPrismarine/commit/3e71a8dd75bd0a97e0f8587666f60f160844ff0b), [`586269e`](https://github.com/JSPrismarine/JSPrismarine/commit/586269e324cddfe57caf4206f387895cda6d479f), [`5d2fb0e`](https://github.com/JSPrismarine/JSPrismarine/commit/5d2fb0eb3730e59260a09e60c130e57e5fdb099c), [`936970c`](https://github.com/JSPrismarine/JSPrismarine/commit/936970c04f98b392e4b753f3c89224da3d03cb49), [`57caf26`](https://github.com/JSPrismarine/JSPrismarine/commit/57caf2632f92e5da55ce6eedc4eb0be3d66190d4), [`4b590cf`](https://github.com/JSPrismarine/JSPrismarine/commit/4b590cf6c529d17d8df20d8eab9b2157dc213a19), [`349a814`](https://github.com/JSPrismarine/JSPrismarine/commit/349a81448bfc8be2f901efe14527b8c9334f11eb), [`56200a6`](https://github.com/JSPrismarine/JSPrismarine/commit/56200a61535d916f0c41a11d077752b194e4c08b), [`c500335`](https://github.com/JSPrismarine/JSPrismarine/commit/c5003358e3a7199593c6ddcdbe4bdf63f8c29fac), [`e090dd7`](https://github.com/JSPrismarine/JSPrismarine/commit/e090dd75379edbfc415d84925e48af29aaa4864e), [`6e758f9`](https://github.com/JSPrismarine/JSPrismarine/commit/6e758f9de80c357c12d992bf473f1bdac86fb274), [`93a1b61`](https://github.com/JSPrismarine/JSPrismarine/commit/93a1b610493f401c4ac62881f70b3dee8c882f33), [`e1c982e`](https://github.com/JSPrismarine/JSPrismarine/commit/e1c982eeed0dfd682b5680c45c69159e21fd9ec0), [`9579362`](https://github.com/JSPrismarine/JSPrismarine/commit/9579362b4070e246d6300d2f4e2dca2ab4715124), [`f18ef7c`](https://github.com/JSPrismarine/JSPrismarine/commit/f18ef7c595f58a267b5371baab96390d0282616d), [`cf88d2f`](https://github.com/JSPrismarine/JSPrismarine/commit/cf88d2f8c2184bd4e116db888d4528fa27f5338d), [`d6c69e4`](https://github.com/JSPrismarine/JSPrismarine/commit/d6c69e43051eb091f0b4a17c0f33799f5944caf3), [`0792e2a`](https://github.com/JSPrismarine/JSPrismarine/commit/0792e2a7e6e5e98729b80df412262fd549ea3cb9), [`1c3be54`](https://github.com/JSPrismarine/JSPrismarine/commit/1c3be5465a2865072ac0f16b4848ee0cd9b6b13a), [`db04d85`](https://github.com/JSPrismarine/JSPrismarine/commit/db04d8520c1d43b88196c14229f36f5c8e71f3c1)]:
21
+ - @jsprismarine/errors@0.23.0
22
+ - @jsprismarine/content@0.23.0
23
23
 
24
24
  ## 0.22.0
25
25
 
package/dist/facts.d.ts CHANGED
@@ -13,7 +13,7 @@ import type { ProviderContext } from './numberProvider.js';
13
13
  */
14
14
  export declare const burnTimeOf: (type: ItemType, context?: ProviderContext) => number;
15
15
  /** The columns {@link flattenItemFacts} fills, one typed array each. */
16
- declare const itemFactColumns: (context: ProviderContext) => {
16
+ export declare const itemFactColumns: (context: ProviderContext) => {
17
17
  readonly maxStackSize: {
18
18
  readonly kind: 'u8';
19
19
  readonly read: (type: ItemType) => number | undefined;
@@ -56,5 +56,4 @@ export type ItemFacts = FlatTable<ReturnType<typeof itemFactColumns>>;
56
56
  * @throws {FlattenError} When a value does not fit its column.
57
57
  */
58
58
  export declare const flattenItemFacts: (registry: ItemRegistry, context?: ProviderContext) => ItemFacts;
59
- export {};
60
59
  //# sourceMappingURL=facts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"facts.d.ts","sources":["../src/facts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,SAAU,QAAQ,YAAW,eAAe,KAA8B,MAWhG,CAAC;AAEF,wEAAwE;AACxE,QAAA,MAAM,eAAe,YAAa,eAAe;aAEzC,YAAY;iBAAI,IAAI,EAAE,IAAI;iBAAE,IAAI,SAAS,QAAQ;iBAAgC,OAAO,EAAE,CAAC;;aAC3F,SAAS;iBAAI,IAAI,EAAE,KAAK;iBAAE,IAAI,SAAS,QAAQ;iBAA6B,OAAO,EAAE,CAAC;;aACtF,MAAM;iBAAI,IAAI,EAAE,IAAI;iBAAE,IAAI,SAAS,QAAQ;iBAAgD,OAAO,EAAE,CAAC;;aACrG,MAAM;iBAAI,IAAI,EAAE,IAAI;iBAAE,IAAI,SAAS,QAAQ;iBAAgD,OAAO,EAAE,CAAC;;aACrG,aAAa;iBAAI,IAAI,EAAE,KAAK;iBAAE,IAAI,SAAS,QAAQ;iBAAgC,OAAO,EAAE,CAAC;;CACtF,CAAC;AAEhB,gGAAgG;AAChG,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;AAEtE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,aACf,YAAY,YACb,eAAe,KACzB,SAQE,CAAC"}
1
+ {"version":3,"file":"facts.d.ts","sources":["../src/facts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAKvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,SAAU,QAAQ,YAAW,eAAe,KAA8B,MAWhG,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,eAAe,YAAa,eAAe;aAEhD,YAAY;iBAAI,IAAI,EAAE,IAAI;iBAAE,IAAI,SAAS,QAAQ;iBAAgC,OAAO,EAAE,CAAC;;aAC3F,SAAS;iBAAI,IAAI,EAAE,KAAK;iBAAE,IAAI,SAAS,QAAQ;iBAA6B,OAAO,EAAE,CAAC;;aACtF,MAAM;iBAAI,IAAI,EAAE,IAAI;iBAAE,IAAI,SAAS,QAAQ;iBAAgD,OAAO,EAAE,CAAC;;aACrG,MAAM;iBAAI,IAAI,EAAE,IAAI;iBAAE,IAAI,SAAS,QAAQ;iBAAgD,OAAO,EAAE,CAAC;;aACrG,aAAa;iBAAI,IAAI,EAAE,KAAK;iBAAE,IAAI,SAAS,QAAQ;iBAAgC,OAAO,EAAE,CAAC;;CACtF,CAAC;AAEhB,gGAAgG;AAChG,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;AAEtE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,aACf,YAAY,YACb,eAAe,KACzB,SAQE,CAAC"}
package/dist/facts.js CHANGED
@@ -71,6 +71,6 @@ var flattenItemFacts = (registry, context = DEFAULT_PROVIDER_CONTEXT) => flatten
71
71
  length: registry.size,
72
72
  columns: itemFactColumns(context)
73
73
  });
74
- export { burnTimeOf, flattenItemFacts };
74
+ export { burnTimeOf, flattenItemFacts, itemFactColumns };
75
75
 
76
76
  //# sourceMappingURL=facts.js.map
package/dist/facts.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"facts.js","names":[],"sources":["../src/facts.ts"],"sourcesContent":["import type { FlatTable } from '@jsprismarine/content';\nimport { flatten } from '@jsprismarine/content';\n\nimport { cookingFuel, food, maxDamage, tool } from './components/defaults';\nimport { maxStackSize } from './components/universal';\nimport type { ItemType } from './hooks';\nimport type { ItemRegistry } from './itemTypes';\nimport type { ProviderContext } from './numberProvider';\nimport { DEFAULT_PROVIDER_CONTEXT } from './numberProvider';\nimport { evaluateNumberProvider } from './numberProvider';\nimport { NumberProviderError } from '@jsprismarine/errors/items';\n\n/**\n * The burn time of one item type in ticks, zero when the item is not a fuel.\n *\n * 26.3 writes a burn time as a reference into `context_int_provider`, so the\n * number depends on the cooking block: `minecraft:cooking/time_boats` is\n * 1200 in a furnace and 600 in a smoker. The default context is the furnace.\n *\n * @param context - Which conditions the provider branches on hold.\n */\nexport const burnTimeOf = (type: ItemType, context: ProviderContext = DEFAULT_PROVIDER_CONTEXT): number => {\n const fuel = type.params(cookingFuel);\n if (fuel?.burn_time === undefined) return 0;\n const source = fuel.burn_time;\n const node = source.kind === 'inline' ? source.value : source.kind === 'reference' ? source.id : source.provider;\n try {\n return Math.round(evaluateNumberProvider(node, context));\n } catch (error) {\n if (error instanceof NumberProviderError) return 0;\n throw error;\n }\n};\n\n/** The columns {@link flattenItemFacts} fills, one typed array each. */\nconst itemFactColumns = (context: ProviderContext) =>\n ({\n maxStackSize: { kind: 'u8', read: (type: ItemType) => type.params(maxStackSize), default: 1 },\n maxDamage: { kind: 'u16', read: (type: ItemType) => type.params(maxDamage), default: 0 },\n isFood: { kind: 'u8', read: (type: ItemType) => (type.params(food) === undefined ? 0 : 1), default: 0 },\n isTool: { kind: 'u8', read: (type: ItemType) => (type.params(tool) === undefined ? 0 : 1), default: 0 },\n burnTimeTicks: { kind: 'u16', read: (type: ItemType) => burnTimeOf(type, context), default: 0 }\n }) as const;\n\n/** The flattened item fact table: five typed arrays indexed by the registry's dense item id. */\nexport type ItemFacts = FlatTable<ReturnType<typeof itemFactColumns>>;\n\n/**\n * Precomputes the item facts a hot path reads, indexed by the registry's\n * dense id, so an inventory move or a furnace tick reads an array slot\n * instead of walking a type's component list.\n *\n * `burnTimeTicks` is capped by the `u16` column, which the longest vanilla\n * burn time, the lava bucket's 20000 ticks, fits inside.\n *\n * @param registry - A built registry; its ids are the table's indices.\n * @param context - The cooking context burn times are resolved for, a normal\n * furnace by default.\n * @throws {FlattenError} When a value does not fit its column.\n */\nexport const flattenItemFacts = (\n registry: ItemRegistry,\n context: ProviderContext = DEFAULT_PROVIDER_CONTEXT\n): ItemFacts =>\n flatten(\n [...registry].map(([, type]) => type),\n {\n id: (type) => registry.idOf(type.identifier)!,\n length: registry.size,\n columns: itemFactColumns(context)\n }\n );\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,IAAa,cAAc,MAAgB,UAA2B,6BAAqC;CACvG,MAAM,OAAO,KAAK,OAAO,WAAW;CACpC,IAAI,MAAM,cAAc,KAAA,GAAW,OAAO;CAC1C,MAAM,SAAS,KAAK;CACpB,MAAM,OAAO,OAAO,SAAS,WAAW,OAAO,QAAQ,OAAO,SAAS,cAAc,OAAO,KAAK,OAAO;CACxG,IAAI;EACA,OAAO,KAAK,MAAM,uBAAuB,MAAM,OAAO,CAAC;CAC3D,SAAS,OAAO;EACZ,IAAI,iBAAiB,qBAAqB,OAAO;EACjD,MAAM;CACV;AACJ;;AAGA,IAAM,mBAAmB,aACpB;CACG,cAAc;EAAE,MAAM;EAAM,OAAO,SAAmB,KAAK,OAAO,YAAY;EAAG,SAAS;CAAE;CAC5F,WAAW;EAAE,MAAM;EAAO,OAAO,SAAmB,KAAK,OAAO,SAAS;EAAG,SAAS;CAAE;CACvF,QAAQ;EAAE,MAAM;EAAM,OAAO,SAAoB,KAAK,OAAO,IAAI,MAAM,KAAA,IAAY,IAAI;EAAI,SAAS;CAAE;CACtG,QAAQ;EAAE,MAAM;EAAM,OAAO,SAAoB,KAAK,OAAO,IAAI,MAAM,KAAA,IAAY,IAAI;EAAI,SAAS;CAAE;CACtG,eAAe;EAAE,MAAM;EAAO,OAAO,SAAmB,WAAW,MAAM,OAAO;EAAG,SAAS;CAAE;AAClG;;;;;;;;;;;;;;AAkBJ,IAAa,oBACT,UACA,UAA2B,6BAE3B,QACI,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,GAAG,UAAU,IAAI,GACpC;CACI,KAAK,SAAS,SAAS,KAAK,KAAK,UAAU;CAC3C,QAAQ,SAAS;CACjB,SAAS,gBAAgB,OAAO;AACpC,CACJ"}
1
+ {"version":3,"file":"facts.js","names":[],"sources":["../src/facts.ts"],"sourcesContent":["import type { FlatTable } from '@jsprismarine/content';\nimport { flatten } from '@jsprismarine/content';\n\nimport { cookingFuel, food, maxDamage, tool } from './components/defaults';\nimport { maxStackSize } from './components/universal';\nimport type { ItemType } from './hooks';\nimport type { ItemRegistry } from './itemTypes';\nimport type { ProviderContext } from './numberProvider';\nimport { DEFAULT_PROVIDER_CONTEXT } from './numberProvider';\nimport { evaluateNumberProvider } from './numberProvider';\nimport { NumberProviderError } from '@jsprismarine/errors/items';\n\n/**\n * The burn time of one item type in ticks, zero when the item is not a fuel.\n *\n * 26.3 writes a burn time as a reference into `context_int_provider`, so the\n * number depends on the cooking block: `minecraft:cooking/time_boats` is\n * 1200 in a furnace and 600 in a smoker. The default context is the furnace.\n *\n * @param context - Which conditions the provider branches on hold.\n */\nexport const burnTimeOf = (type: ItemType, context: ProviderContext = DEFAULT_PROVIDER_CONTEXT): number => {\n const fuel = type.params(cookingFuel);\n if (fuel?.burn_time === undefined) return 0;\n const source = fuel.burn_time;\n const node = source.kind === 'inline' ? source.value : source.kind === 'reference' ? source.id : source.provider;\n try {\n return Math.round(evaluateNumberProvider(node, context));\n } catch (error) {\n if (error instanceof NumberProviderError) return 0;\n throw error;\n }\n};\n\n/** The columns {@link flattenItemFacts} fills, one typed array each. */\nexport const itemFactColumns = (context: ProviderContext) =>\n ({\n maxStackSize: { kind: 'u8', read: (type: ItemType) => type.params(maxStackSize), default: 1 },\n maxDamage: { kind: 'u16', read: (type: ItemType) => type.params(maxDamage), default: 0 },\n isFood: { kind: 'u8', read: (type: ItemType) => (type.params(food) === undefined ? 0 : 1), default: 0 },\n isTool: { kind: 'u8', read: (type: ItemType) => (type.params(tool) === undefined ? 0 : 1), default: 0 },\n burnTimeTicks: { kind: 'u16', read: (type: ItemType) => burnTimeOf(type, context), default: 0 }\n }) as const;\n\n/** The flattened item fact table: five typed arrays indexed by the registry's dense item id. */\nexport type ItemFacts = FlatTable<ReturnType<typeof itemFactColumns>>;\n\n/**\n * Precomputes the item facts a hot path reads, indexed by the registry's\n * dense id, so an inventory move or a furnace tick reads an array slot\n * instead of walking a type's component list.\n *\n * `burnTimeTicks` is capped by the `u16` column, which the longest vanilla\n * burn time, the lava bucket's 20000 ticks, fits inside.\n *\n * @param registry - A built registry; its ids are the table's indices.\n * @param context - The cooking context burn times are resolved for, a normal\n * furnace by default.\n * @throws {FlattenError} When a value does not fit its column.\n */\nexport const flattenItemFacts = (\n registry: ItemRegistry,\n context: ProviderContext = DEFAULT_PROVIDER_CONTEXT\n): ItemFacts =>\n flatten(\n [...registry].map(([, type]) => type),\n {\n id: (type) => registry.idOf(type.identifier)!,\n length: registry.size,\n columns: itemFactColumns(context)\n }\n );\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,IAAa,cAAc,MAAgB,UAA2B,6BAAqC;CACvG,MAAM,OAAO,KAAK,OAAO,WAAW;CACpC,IAAI,MAAM,cAAc,KAAA,GAAW,OAAO;CAC1C,MAAM,SAAS,KAAK;CACpB,MAAM,OAAO,OAAO,SAAS,WAAW,OAAO,QAAQ,OAAO,SAAS,cAAc,OAAO,KAAK,OAAO;CACxG,IAAI;EACA,OAAO,KAAK,MAAM,uBAAuB,MAAM,OAAO,CAAC;CAC3D,SAAS,OAAO;EACZ,IAAI,iBAAiB,qBAAqB,OAAO;EACjD,MAAM;CACV;AACJ;;AAGA,IAAa,mBAAmB,aAC3B;CACG,cAAc;EAAE,MAAM;EAAM,OAAO,SAAmB,KAAK,OAAO,YAAY;EAAG,SAAS;CAAE;CAC5F,WAAW;EAAE,MAAM;EAAO,OAAO,SAAmB,KAAK,OAAO,SAAS;EAAG,SAAS;CAAE;CACvF,QAAQ;EAAE,MAAM;EAAM,OAAO,SAAoB,KAAK,OAAO,IAAI,MAAM,KAAA,IAAY,IAAI;EAAI,SAAS;CAAE;CACtG,QAAQ;EAAE,MAAM;EAAM,OAAO,SAAoB,KAAK,OAAO,IAAI,MAAM,KAAA,IAAY,IAAI;EAAI,SAAS;CAAE;CACtG,eAAe;EAAE,MAAM;EAAO,OAAO,SAAmB,WAAW,MAAM,OAAO;EAAG,SAAS;CAAE;AAClG;;;;;;;;;;;;;;AAkBJ,IAAa,oBACT,UACA,UAA2B,6BAE3B,QACI,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,GAAG,UAAU,IAAI,GACpC;CACI,KAAK,SAAS,SAAS,KAAK,KAAK,UAAU;CAC3C,QAAQ,SAAS;CACjB,SAAS,gBAAgB,OAAO;AACpC,CACJ"}
package/dist/index.d.ts CHANGED
@@ -10,4 +10,5 @@ export * from './numberProvider.js';
10
10
  export * from './projection.js';
11
11
  export * from './schema.js';
12
12
  export * from './tables.js';
13
+ export { itemFactColumns } from './facts.js';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { EQUIPMENT_SLOTS, animation, attributeModifier, attributeOperation, bloc
5
5
  import { DEFAULTED_COMPONENTS, attackRange, bannerPatterns, bees, blockState, blockTransformer, blocksAttacks, brewingFuel, bucketEntityData, bundleContents, chargedProjectiles, chickenVariant, compostable, consumable, container, cookingFuel, cushionColor, damage, damageResistant, damageType, deathProtection, debugStickState, dye, enchantable, enchantmentGlintOverride, entityData, equippable, fireworks, food, glider, instrument, jukeboxPlayable, kineticWeapon, mapDecorations, maxDamage, minimumAttackCharge, mobVisibility, ominousBottleAmplifier, piercingWeapon, potDecorations, potionContents, potionDurationScale, providesBannerPatterns, providesPotteryPattern, providesTrimMaterial, recipes, repairable, signTextBack, signTextFront, storedEnchantments, suspiciousStewEffects, tool, useCooldown, useRemainder, villagerFood, weapon, writableBookContent } from "./components/defaults.js";
6
6
  import { RARITIES, UNIVERSAL_COMPONENTS, attackAnimation, attributeModifiers, breakSound, enchantments, interactAnimation, itemModel, itemName, lore, maxStackSize, rarity, repairCost, tooltipDisplay, useEffects } from "./components/universal.js";
7
7
  import { EXCEPTED_JAVA_ITEMS, ITEM_TABLE_EXCEPTIONS } from "./exceptions.js";
8
- import { burnTimeOf, flattenItemFacts } from "./facts.js";
8
+ import { burnTimeOf, flattenItemFacts, itemFactColumns } from "./facts.js";
9
9
  import { ITEM_HOOKS } from "./hooks.js";
10
10
  import { STACK_ONLY_COMPONENTS, UNVERIFIED_SHAPE_COMPONENTS, additionalTradeCost, axolotlVariant, baseColor, blockEntityData, canBreak, canPlaceOn, catCollar, catSoundVariant, catVariant, chickenSoundVariant, containerLoot, cowSoundVariant, cowVariant, creativeSlotLock, customData, customModelData, customName, dyedColor, fireworkExplosionComponent, foxVariant, frogVariant, horseVariant, intangibleProjectile, llamaVariant, lock, lodestoneTracker, mapId, mapPostProcessing, mooshroomVariant, noteBlockSound, paintingVariant, parrotVariant, pigSoundVariant, pigVariant, profile, rabbitVariant, salmonSize, sheepColor, shulkerColor, sulfurCubeContent, tooltipStyle, trim, tropicalFishBaseColor, tropicalFishPattern, tropicalFishPatternColor, unbreakable, villagerVariant, waxed, wolfCollar, wolfSoundVariant, wolfVariant, writtenBookContent, zombieNautilusVariant } from "./components/stackOnly.js";
11
11
  import { ITEM_COMPONENTS, ITEM_COMPONENT_NAMES, createItemComponentRegistry } from "./components/catalog.js";
@@ -15,4 +15,4 @@ import { DEFAULT_PROVIDER_CONTEXT, FAST_COOKING_CONTEXT, evaluateNumberProvider
15
15
  import { BEDROCK_ONLY_ITEM_PROPERTIES, UNPROJECTED_BEDROCK_COMPONENTS, enchantableSlotOf, projectItemToBedrock } from "./projection.js";
16
16
  import { bool, compound, either, float, holderSet, identifier, int, json, listOf, literalOf, mapOf, numberSource, object, parsedOr, text, textComponent } from "./schema.js";
17
17
  import { itemTypesTable } from "./tables.js";
18
- export { BEDROCK_ONLY_ITEM_PROPERTIES, DEFAULTED_COMPONENTS, DEFAULT_PROVIDER_CONTEXT, EQUIPMENT_SLOTS, EXCEPTED_JAVA_ITEMS, FAST_COOKING_CONTEXT, ITEM_COMPONENTS, ITEM_COMPONENT_NAMES, ITEM_FLAGS, ITEM_HOOKS, ITEM_REGISTRY_NAME, ITEM_TABLE_EXCEPTIONS, ItemStack, RARITIES, STACK_ONLY_COMPONENTS, UNIVERSAL_COMPONENTS, UNPROJECTED_BEDROCK_COMPONENTS, UNVERIFIED_SHAPE_COMPONENTS, additionalTradeCost, animation, attackAnimation, attackRange, attributeModifier, attributeModifiers, attributeOperation, axolotlVariant, bannerPatterns, baseColor, bees, blockEntityData, blockPos, blockState, blockTransformer, blocksAttacks, bookPage, bool, breakSound, brewingFuel, bucketEntityData, buildBedrockItemTags, bundleContents, burnTimeOf, canBreak, canPlaceOn, canStack, catCollar, catSoundVariant, catVariant, chargedProjectiles, chickenSoundVariant, chickenVariant, componentValuesEqual, compostable, compound, consumable, consumeEffect, container, containerLoot, cookingFuel, cowSoundVariant, cowVariant, createItemComponentRegistry, creativeSlotLock, cushionColor, customData, customModelData, customName, damage, damageReduction, damageResistant, damageType, dataComponent, deathProtection, debugStickState, defineItemComponent, dye, dyedColor, either, enchantable, enchantableSlotOf, enchantmentGlintOverride, enchantmentLevels, enchantments, entityData, equipmentSlot, equippable, evaluateNumberProvider, fireworkExplosion, fireworkExplosionComponent, fireworks, flattenItemFacts, float, food, foxVariant, frogVariant, glider, holderSet, horseVariant, identifier, instrument, int, intangibleProjectile, interactAnimation, itemDamageFunction, itemDefinition, itemModel, itemName, itemStackReference, itemTypesTable, json, jukeboxPlayable, kineticWeapon, listOf, literalOf, llamaVariant, loadItemTypes, lock, lodestoneTracker, lore, mapDecorations, mapId, mapOf, mapPostProcessing, maxDamage, maxStackSize, maxStackSizeOf, mergeStacks, minimumAttackCharge, mobVisibility, mooshroomVariant, noteBlockSound, numberSource, object, ominousBottleAmplifier, opaque, paintingVariant, parrotVariant, parsedOr, patchesEqual, piercingWeapon, pigSoundVariant, pigVariant, potDecorations, potionContents, potionDurationScale, profile, projectItemToBedrock, providesBannerPatterns, providesPotteryPattern, providesTrimMaterial, rabbitVariant, range, rarity, readItemComponents, recipes, repairCost, repairable, salmonSize, sameItemSameComponents, sheepColor, shulkerColor, signText, signTextBack, signTextFront, storedEnchantments, sulfurCubeContent, suspiciousStewEffects, text, textComponent, textComponentList, tool, toolRule, tooltipDisplay, tooltipStyle, trim, tropicalFishBaseColor, tropicalFishPattern, tropicalFishPatternColor, unbreakable, useCooldown, useEffects, useRemainder, vanillaItemDefinitions, villagerFood, villagerVariant, waxed, weapon, wolfCollar, wolfSoundVariant, wolfVariant, writableBookContent, writtenBookContent, zombieNautilusVariant };
18
+ export { BEDROCK_ONLY_ITEM_PROPERTIES, DEFAULTED_COMPONENTS, DEFAULT_PROVIDER_CONTEXT, EQUIPMENT_SLOTS, EXCEPTED_JAVA_ITEMS, FAST_COOKING_CONTEXT, ITEM_COMPONENTS, ITEM_COMPONENT_NAMES, ITEM_FLAGS, ITEM_HOOKS, ITEM_REGISTRY_NAME, ITEM_TABLE_EXCEPTIONS, ItemStack, RARITIES, STACK_ONLY_COMPONENTS, UNIVERSAL_COMPONENTS, UNPROJECTED_BEDROCK_COMPONENTS, UNVERIFIED_SHAPE_COMPONENTS, additionalTradeCost, animation, attackAnimation, attackRange, attributeModifier, attributeModifiers, attributeOperation, axolotlVariant, bannerPatterns, baseColor, bees, blockEntityData, blockPos, blockState, blockTransformer, blocksAttacks, bookPage, bool, breakSound, brewingFuel, bucketEntityData, buildBedrockItemTags, bundleContents, burnTimeOf, canBreak, canPlaceOn, canStack, catCollar, catSoundVariant, catVariant, chargedProjectiles, chickenSoundVariant, chickenVariant, componentValuesEqual, compostable, compound, consumable, consumeEffect, container, containerLoot, cookingFuel, cowSoundVariant, cowVariant, createItemComponentRegistry, creativeSlotLock, cushionColor, customData, customModelData, customName, damage, damageReduction, damageResistant, damageType, dataComponent, deathProtection, debugStickState, defineItemComponent, dye, dyedColor, either, enchantable, enchantableSlotOf, enchantmentGlintOverride, enchantmentLevels, enchantments, entityData, equipmentSlot, equippable, evaluateNumberProvider, fireworkExplosion, fireworkExplosionComponent, fireworks, flattenItemFacts, float, food, foxVariant, frogVariant, glider, holderSet, horseVariant, identifier, instrument, int, intangibleProjectile, interactAnimation, itemDamageFunction, itemDefinition, itemFactColumns, itemModel, itemName, itemStackReference, itemTypesTable, json, jukeboxPlayable, kineticWeapon, listOf, literalOf, llamaVariant, loadItemTypes, lock, lodestoneTracker, lore, mapDecorations, mapId, mapOf, mapPostProcessing, maxDamage, maxStackSize, maxStackSizeOf, mergeStacks, minimumAttackCharge, mobVisibility, mooshroomVariant, noteBlockSound, numberSource, object, ominousBottleAmplifier, opaque, paintingVariant, parrotVariant, parsedOr, patchesEqual, piercingWeapon, pigSoundVariant, pigVariant, potDecorations, potionContents, potionDurationScale, profile, projectItemToBedrock, providesBannerPatterns, providesPotteryPattern, providesTrimMaterial, rabbitVariant, range, rarity, readItemComponents, recipes, repairCost, repairable, salmonSize, sameItemSameComponents, sheepColor, shulkerColor, signText, signTextBack, signTextFront, storedEnchantments, sulfurCubeContent, suspiciousStewEffects, text, textComponent, textComponentList, tool, toolRule, tooltipDisplay, tooltipStyle, trim, tropicalFishBaseColor, tropicalFishPattern, tropicalFishPatternColor, unbreakable, useCooldown, useEffects, useRemainder, vanillaItemDefinitions, villagerFood, villagerVariant, waxed, weapon, wolfCollar, wolfSoundVariant, wolfVariant, writableBookContent, writtenBookContent, zombieNautilusVariant };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsprismarine/items",
3
- "version": "0.23.0-unstable-20261121073620",
3
+ "version": "0.23.0",
4
4
  "description": "The item definition and component runtime: Java 26.3's 122 data component types over Bedrock item identities",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -52,12 +52,12 @@
52
52
  "license": "(MIT OR MPL-2.0)",
53
53
  "homepage": "https://github.com/JSPrismarine/JSPrismarine/tree/master/packages/items",
54
54
  "dependencies": {
55
- "@jsprismarine/content": "0.23.0-unstable-20261121073620",
56
- "@jsprismarine/errors": "0.23.0-unstable-20261121073620"
55
+ "@jsprismarine/content": "0.23.0",
56
+ "@jsprismarine/errors": "0.23.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@jsprismarine/bedrock-data": "0.23.0-unstable-20261121073620",
60
- "@jsprismarine/mapping": "0.23.0-unstable-20261121073620",
59
+ "@jsprismarine/bedrock-data": "0.23.0",
60
+ "@jsprismarine/mapping": "0.23.0",
61
61
  "@types/node": "26.6.6",
62
62
  "glob": "14.0.6",
63
63
  "prettier": "3.10.1",