@spyglassmc/java-edition 0.3.57 → 0.3.59

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.
@@ -13,16 +13,16 @@ export declare function getResources(): Generator<Resource, undefined, unknown>;
13
13
  export declare function getRels(uri: string, rootUris: readonly RootUriString[]): Generator<string, undefined, unknown>;
14
14
  export declare function getRoots(uri: string, rootUris: readonly RootUriString[]): Generator<RootUriString, undefined, unknown>;
15
15
  export declare function dissectUri(uri: string, ctx: UriBinderContext): {
16
- expected: string | undefined;
17
- namespace: string;
18
- identifier: string;
19
16
  path: string;
20
17
  category: FileCategory;
21
18
  ext: `.${string}`;
22
- pack: "data" | "assets";
19
+ pack: 'data' | 'assets';
23
20
  since?: ReleaseVersion;
24
21
  until?: ReleaseVersion;
22
+ namespace: string;
23
+ identifier: string;
25
24
  ok: boolean;
25
+ expected: string | undefined;
26
26
  } | undefined;
27
27
  export declare const uriBinder: UriBinder;
28
28
  export declare function registerCustomResources(config: Config): void;
@@ -20,8 +20,8 @@ export declare namespace BlockNode {
20
20
  function is(node: core.DeepReadonly<core.AstNode> | undefined): node is BlockNode;
21
21
  function mock(range: core.RangeLike, isPredicate: boolean): BlockNode;
22
22
  }
23
- export declare const CoordinateNotations: readonly ["", "~", "^"];
24
- export type CoordinateNodeNotation = typeof CoordinateNotations[number];
23
+ export declare const CoordinateNotations: readonly ['', '~', '^'];
24
+ export type CoordinateNodeNotation = (typeof CoordinateNotations)[number];
25
25
  export interface CoordinateNode extends core.FloatBaseNode {
26
26
  type: 'mcfunction:coordinate';
27
27
  notation: CoordinateNodeNotation;
@@ -57,19 +57,19 @@ export interface EntitySelectorArgumentsNode extends core.RecordBaseNode<core.St
57
57
  export declare namespace EntitySelectorArgumentsNode {
58
58
  function is(node: core.AstNode): node is EntitySelectorArgumentsNode;
59
59
  }
60
- declare const EntitySelectorVariables: readonly ["a", "e", "p", "r", "s", "n"];
61
- export type EntitySelectorVariable = typeof EntitySelectorVariables[number];
60
+ declare const EntitySelectorVariables: readonly ['a', 'e', 'p', 'r', 's', 'n'];
61
+ export type EntitySelectorVariable = (typeof EntitySelectorVariables)[number];
62
62
  export declare namespace EntitySelectorVariable {
63
63
  function is(value: string): value is EntitySelectorVariable;
64
64
  }
65
- declare const EntitySelectorAtVariables: ("@s" | "@a" | "@e" | "@p" | "@r" | "@n")[];
66
- export type EntitySelectorAtVariable = typeof EntitySelectorAtVariables[number];
65
+ declare const EntitySelectorAtVariables: ("@a" | "@e" | "@n" | "@p" | "@r" | "@s")[];
66
+ export type EntitySelectorAtVariable = (typeof EntitySelectorAtVariables)[number];
67
67
  export declare namespace EntitySelectorAtVariable {
68
68
  function is(value: string): value is EntitySelectorAtVariable;
69
69
  /**
70
70
  * Should be used to get a list of available selectors for the current version.
71
71
  */
72
- function filterAvailable(ctx: core.ContextBase): ("@s" | "@a" | "@e" | "@p" | "@r" | "@n")[];
72
+ function filterAvailable(ctx: core.ContextBase): ("@a" | "@e" | "@n" | "@p" | "@r" | "@s")[];
73
73
  }
74
74
  export interface EntitySelectorNode extends core.AstNode {
75
75
  type: 'mcfunction:entity_selector';
@@ -87,7 +87,7 @@ export interface EntitySelectorNode extends core.AstNode {
87
87
  export declare namespace EntitySelectorNode {
88
88
  function is<T extends core.DeepReadonly<core.AstNode> | undefined>(node: T): node is core.InheritReadonly<EntitySelectorNode, T>;
89
89
  function mock(range: core.RangeLike, options: core.LiteralOptions): EntitySelectorNode;
90
- const ArgumentKeys: Set<"tag" | "team" | "predicate" | "type" | "level" | "name" | "sort" | "advancements" | "nbt" | "distance" | "gamemode" | "limit" | "scores" | "x" | "y" | "z" | "dx" | "dy" | "dz" | "x_rotation" | "y_rotation">;
90
+ const ArgumentKeys: Set<"advancements" | "distance" | "dx" | "dy" | "dz" | "gamemode" | "level" | "limit" | "name" | "nbt" | "predicate" | "scores" | "sort" | "tag" | "team" | "type" | "x" | "x_rotation" | "y" | "y_rotation" | "z">;
91
91
  type ArgumentKey = typeof ArgumentKeys extends Set<infer T> ? T : undefined;
92
92
  const enum Result {
93
93
  Ok = 0,
@@ -253,7 +253,7 @@ export interface ObjectiveCriteriaNode extends core.AstNode {
253
253
  }
254
254
  export declare namespace ObjectiveCriteriaNode {
255
255
  const SimpleValues: string[];
256
- const ComplexCategories: Map<string, "block" | "fluid" | "instrument" | "activity" | "armor_material" | "attribute" | "attribute_type" | "block_entity_type" | "block_predicate_type" | "block_type" | "chunk_status" | "command_argument_type" | "consume_effect_type" | "creative_mode_tab" | "custom_stat" | "data_component_predicate_type" | "data_component_type" | "debug_subscription" | "decorated_pot_pattern" | "decorated_pot_patterns" | "dialog_action_type" | "dialog_body_type" | "dialog_type" | "enchantment_effect_component_type" | "enchantment_entity_effect_type" | "enchantment_level_based_value_type" | "enchantment_location_based_effect_type" | "enchantment_provider_type" | "enchantment_value_effect_type" | "entity_sub_predicate_type" | "entity_type" | "environment_attribute" | "float_provider_type" | "game_event" | "game_rule" | "height_provider_type" | "incoming_rpc_methods" | "input_control_type" | "int_provider_type" | "item" | "item_sub_predicate_type" | "loot_condition_type" | "loot_function_type" | "loot_nbt_provider_type" | "loot_number_provider_type" | "loot_pool_entry_type" | "loot_score_provider_type" | "map_decoration_type" | "memory_module_type" | "menu" | "mob_effect" | "motive" | "number_format_type" | "outgoing_rpc_methods" | "particle_type" | "permission_check_type" | "permission_type" | "point_of_interest_type" | "pos_rule_test" | "position_source_type" | "potion" | "recipe_book_category" | "recipe_display" | "recipe_serializer" | "recipe_type" | "rule_block_entity_modifier" | "rule_test" | "schedule" | "sensor_type" | "slot_display" | "slot_source_type" | "sound_event" | "spawn_condition_type" | "stat_type" | "test_environment_definition_type" | "test_function" | "test_instance_type" | "trigger_type" | "ticket_type" | "villager_profession" | "villager_type" | "worldgen/biome_source" | "worldgen/block_placer_type" | "worldgen/block_state_provider_type" | "worldgen/carver" | "worldgen/chunk_generator" | "worldgen/decorator" | "worldgen/density_function_type" | "worldgen/feature" | "worldgen/feature_size_type" | "worldgen/foliage_placer_type" | "worldgen/material_condition" | "worldgen/material_rule" | "worldgen/placement_modifier_type" | "worldgen/pool_alias_binding" | "worldgen/root_placer_type" | "worldgen/structure_feature" | "worldgen/structure_piece" | "worldgen/structure_placement" | "worldgen/structure_pool_element" | "worldgen/structure_processor" | "worldgen/structure_type" | "worldgen/surface_builder" | "worldgen/tree_decorator_type" | "worldgen/trunk_placer_type">;
256
+ const ComplexCategories: Map<string, "activity" | "armor_material" | "attribute" | "attribute_type" | "block" | "block_entity_type" | "block_predicate_type" | "block_type" | "chunk_status" | "command_argument_type" | "consume_effect_type" | "creative_mode_tab" | "custom_stat" | "data_component_predicate_type" | "data_component_type" | "debug_subscription" | "decorated_pot_pattern" | "decorated_pot_patterns" | "dialog_action_type" | "dialog_body_type" | "dialog_type" | "enchantment_effect_component_type" | "enchantment_entity_effect_type" | "enchantment_level_based_value_type" | "enchantment_location_based_effect_type" | "enchantment_provider_type" | "enchantment_value_effect_type" | "entity_sub_predicate_type" | "entity_type" | "environment_attribute" | "float_provider_type" | "fluid" | "game_event" | "game_rule" | "height_provider_type" | "incoming_rpc_methods" | "input_control_type" | "instrument" | "int_provider_type" | "item" | "item_sub_predicate_type" | "loot_condition_type" | "loot_function_type" | "loot_nbt_provider_type" | "loot_number_provider_type" | "loot_pool_entry_type" | "loot_score_provider_type" | "map_decoration_type" | "memory_module_type" | "menu" | "mob_effect" | "motive" | "number_format_type" | "outgoing_rpc_methods" | "particle_type" | "permission_check_type" | "permission_type" | "point_of_interest_type" | "pos_rule_test" | "position_source_type" | "potion" | "recipe_book_category" | "recipe_display" | "recipe_serializer" | "recipe_type" | "rule_block_entity_modifier" | "rule_test" | "schedule" | "sensor_type" | "slot_display" | "slot_source_type" | "sound_event" | "spawn_condition_type" | "stat_type" | "test_environment_definition_type" | "test_function" | "test_instance_type" | "ticket_type" | "trigger_type" | "villager_profession" | "villager_type" | "worldgen/biome_source" | "worldgen/block_placer_type" | "worldgen/block_state_provider_type" | "worldgen/carver" | "worldgen/chunk_generator" | "worldgen/decorator" | "worldgen/density_function_type" | "worldgen/feature" | "worldgen/feature_size_type" | "worldgen/foliage_placer_type" | "worldgen/material_condition" | "worldgen/material_rule" | "worldgen/placement_modifier_type" | "worldgen/pool_alias_binding" | "worldgen/root_placer_type" | "worldgen/structure_feature" | "worldgen/structure_piece" | "worldgen/structure_placement" | "worldgen/structure_pool_element" | "worldgen/structure_processor" | "worldgen/structure_type" | "worldgen/surface_builder" | "worldgen/tree_decorator_type" | "worldgen/trunk_placer_type">;
257
257
  const ComplexSep = ":";
258
258
  function mock(range: core.RangeLike): ObjectiveCriteriaNode;
259
259
  }
@@ -263,7 +263,7 @@ export interface ParticleNode extends core.AstNode {
263
263
  id: core.ResourceLocationNode;
264
264
  }
265
265
  export declare namespace ParticleNode {
266
- const SpecialTypes: Set<"block" | "item" | "block_marker" | "dust" | "dust_color_transition" | "falling_dust" | "sculk_charge" | "shriek" | "vibration">;
266
+ const SpecialTypes: Set<"block" | "block_marker" | "dust" | "dust_color_transition" | "falling_dust" | "item" | "sculk_charge" | "shriek" | "vibration">;
267
267
  export type SpecialType = typeof SpecialTypes extends Set<infer T> ? T : undefined;
268
268
  export function isSpecialType(type: string | undefined): type is SpecialType;
269
269
  export type OptionType = typeof SpecialTypes extends Set<infer T> ? T : undefined;
@@ -142,10 +142,8 @@ export var EntitySelectorNode;
142
142
  case 'limit':
143
143
  case 'sort':
144
144
  return selector.currentEntity
145
- ? 2 /* Result.NotApplicable */
146
- : hasKey(key)
147
- ? 1 /* Result.Duplicated */
148
- : 0 /* Result.Ok */;
145
+ ? 2 /* Result.NotApplicable */ : hasKey(key)
146
+ ? 1 /* Result.Duplicated */ : 0 /* Result.Ok */;
149
147
  case 'type':
150
148
  return selector.typeLimited
151
149
  ? hasKey(key) ? 1 /* Result.Duplicated */ : 2 /* Result.NotApplicable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglassmc/java-edition",
3
- "version": "0.3.57",
3
+ "version": "0.3.59",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -17,12 +17,12 @@
17
17
  "release:dry": "npm publish --tag latest --dry-run"
18
18
  },
19
19
  "dependencies": {
20
- "@spyglassmc/core": "0.4.45",
21
- "@spyglassmc/json": "0.3.49",
22
- "@spyglassmc/locales": "0.3.23",
23
- "@spyglassmc/mcfunction": "0.2.48",
24
- "@spyglassmc/mcdoc": "0.3.49",
25
- "@spyglassmc/nbt": "0.3.51"
20
+ "@spyglassmc/core": "0.4.47",
21
+ "@spyglassmc/json": "0.3.51",
22
+ "@spyglassmc/locales": "0.3.24",
23
+ "@spyglassmc/mcfunction": "0.2.50",
24
+ "@spyglassmc/mcdoc": "0.3.51",
25
+ "@spyglassmc/nbt": "0.3.53"
26
26
  },
27
27
  "devDependencies": {},
28
28
  "publishConfig": {