@spyglassmc/core 0.4.46 → 0.4.48
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/lib/common/Dev.d.ts +1 -1
- package/lib/common/EventDispatcher.d.ts +6 -0
- package/lib/common/EventDispatcher.js +15 -0
- package/lib/common/ReadonlyProxy.js +2 -2
- package/lib/common/StateProxy.js +2 -2
- package/lib/common/externals/BrowserExternals.d.ts +1 -9
- package/lib/common/externals/BrowserExternals.js +0 -59
- package/lib/common/externals/NodeJsExternals.d.ts +7 -23
- package/lib/common/externals/NodeJsExternals.js +192 -46
- package/lib/common/externals/index.d.ts +0 -17
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +1 -0
- package/lib/common/util.d.ts +15 -7
- package/lib/common/util.js +53 -18
- package/lib/node/StringNode.d.ts +1 -1
- package/lib/parser/string.d.ts +2 -2
- package/lib/processor/colorizer/Colorizer.d.ts +2 -2
- package/lib/service/CacheService.js +4 -5
- package/lib/service/Config.d.ts +6 -10
- package/lib/service/Config.js +3 -15
- package/lib/service/FileService.js +5 -5
- package/lib/service/FileWatcher.d.ts +9 -12
- package/lib/service/Project.d.ts +14 -27
- package/lib/service/Project.js +6 -18
- package/lib/service/fetcher.d.ts +8 -1
- package/lib/service/fetcher.js +62 -9
- package/lib/service/fileUtil.js +3 -3
- package/lib/symbol/Symbol.d.ts +10 -10
- package/lib/symbol/Symbol.js +15 -7
- package/lib/symbol/SymbolUtil.d.ts +9 -18
- package/lib/symbol/SymbolUtil.js +5 -19
- package/package.json +4 -5
package/lib/symbol/Symbol.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import type { RangeLike } from '../source/index.js';
|
|
|
4
4
|
import { PositionRange, Range } from '../source/index.js';
|
|
5
5
|
export declare const McdocCategories: readonly ["mcdoc", "mcdoc/dispatcher"];
|
|
6
6
|
export type McdocCategory = (typeof McdocCategories)[number];
|
|
7
|
-
export declare const RegistryCategories: readonly ["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", "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"];
|
|
7
|
+
export declare const RegistryCategories: readonly ["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", "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/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "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"];
|
|
8
8
|
export type RegistryCategory = (typeof RegistryCategories)[number];
|
|
9
|
-
export declare const NormalFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant"];
|
|
9
|
+
export declare const NormalFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant"];
|
|
10
10
|
export type NormalFileCategory = (typeof NormalFileCategories)[number];
|
|
11
|
-
export declare const WorldgenFileCategories: readonly ["worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/flat_level_generator_preset", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
11
|
+
export declare const WorldgenFileCategories: readonly ["worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
12
12
|
export type WorldgenFileCategory = (typeof WorldgenFileCategories)[number];
|
|
13
|
-
export declare const TaggableResourceLocationCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", "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", "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", "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/flat_level_generator_preset", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
13
|
+
export declare const TaggableResourceLocationCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", "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", "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/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "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", "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
14
14
|
export type TaggableResourceLocationCategory = (typeof TaggableResourceLocationCategories)[number];
|
|
15
15
|
export declare namespace TaggableResourceLocationCategory {
|
|
16
16
|
function is(category: string): category is TaggableResourceLocationCategory;
|
|
17
17
|
}
|
|
18
|
-
export declare const TagFileCategories: readonly ("tag/
|
|
18
|
+
export declare const TagFileCategories: readonly ("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[];
|
|
19
19
|
export type TagFileCategory = (typeof TagFileCategories)[number];
|
|
20
|
-
export declare const DataFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/
|
|
20
|
+
export declare const DataFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
21
21
|
export type DataFileCategory = (typeof DataFileCategories)[number];
|
|
22
22
|
export declare const DataMiscCategories: readonly ["attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch"];
|
|
23
23
|
export type DataMiscCategory = (typeof DataMiscCategories)[number];
|
|
24
|
-
export declare const DatapackCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/
|
|
24
|
+
export declare const DatapackCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch"];
|
|
25
25
|
export type DatapackCategory = (typeof DatapackCategories)[number];
|
|
26
26
|
export declare const AssetsFileCategories: readonly ["atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style"];
|
|
27
27
|
export type AssetsFileCategory = (typeof AssetsFileCategories)[number];
|
|
@@ -29,11 +29,11 @@ export declare const AssetsMiscCategories: readonly ["texture_slot", "shader_tar
|
|
|
29
29
|
export type AssetsMiscCategory = (typeof AssetsMiscCategories)[number];
|
|
30
30
|
export declare const ResourcepackCategories: readonly ["texture_slot", "shader_target", "translation_key", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style"];
|
|
31
31
|
export type ResourcepackCategory = (typeof ResourcepackCategories)[number];
|
|
32
|
-
export declare const FileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/
|
|
32
|
+
export declare const FileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style"];
|
|
33
33
|
export type FileCategory = (typeof FileCategories)[number];
|
|
34
|
-
export declare const AllCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/
|
|
34
|
+
export declare const AllCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch", "texture_slot", "shader_target", "translation_key", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style", "mcdoc", "mcdoc/dispatcher", "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", "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/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "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"];
|
|
35
35
|
export type AllCategory = (typeof AllCategories)[number];
|
|
36
|
-
export declare const ResourceLocationCategories: readonly ["mcdoc/dispatcher", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch", "texture_slot", "shader_target", "translation_key", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/
|
|
36
|
+
export declare const ResourceLocationCategories: readonly ["mcdoc/dispatcher", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch", "texture_slot", "shader_target", "translation_key", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style", "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", "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/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "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"];
|
|
37
37
|
export type ResourceLocationCategory = (typeof ResourceLocationCategories)[number];
|
|
38
38
|
export declare namespace ResourceLocationCategory {
|
|
39
39
|
function is(category: string): category is ResourceLocationCategory;
|
package/lib/symbol/Symbol.js
CHANGED
|
@@ -24,7 +24,7 @@ export const RegistryCategories = Object.freeze([
|
|
|
24
24
|
'data_component_predicate_type',
|
|
25
25
|
'data_component_type',
|
|
26
26
|
'debug_subscription',
|
|
27
|
-
'decorated_pot_pattern',
|
|
27
|
+
'decorated_pot_pattern', // Removed as registry
|
|
28
28
|
'decorated_pot_patterns', // Removed
|
|
29
29
|
'dialog_action_type',
|
|
30
30
|
'dialog_body_type',
|
|
@@ -96,11 +96,14 @@ export const RegistryCategories = Object.freeze([
|
|
|
96
96
|
'worldgen/chunk_generator',
|
|
97
97
|
'worldgen/decorator', // Removed
|
|
98
98
|
'worldgen/density_function_type',
|
|
99
|
-
'worldgen/feature',
|
|
99
|
+
'worldgen/feature', // Removed as registry
|
|
100
100
|
'worldgen/feature_size_type',
|
|
101
|
+
'worldgen/feature_type',
|
|
101
102
|
'worldgen/foliage_placer_type',
|
|
102
|
-
'worldgen/material_condition',
|
|
103
|
-
'worldgen/
|
|
103
|
+
'worldgen/material_condition', // Removed as registry
|
|
104
|
+
'worldgen/material_condition_type',
|
|
105
|
+
'worldgen/material_rule', // Removed as registry
|
|
106
|
+
'worldgen/material_rule_type',
|
|
104
107
|
'worldgen/placement_modifier_type',
|
|
105
108
|
'worldgen/pool_alias_binding',
|
|
106
109
|
'worldgen/root_placer_type',
|
|
@@ -124,6 +127,7 @@ export const NormalFileCategories = Object.freeze([
|
|
|
124
127
|
'chicken_variant',
|
|
125
128
|
'cow_variant',
|
|
126
129
|
'damage_type',
|
|
130
|
+
'decorated_pot_pattern',
|
|
127
131
|
'dialog',
|
|
128
132
|
'dimension',
|
|
129
133
|
'dimension_type',
|
|
@@ -139,6 +143,7 @@ export const NormalFileCategories = Object.freeze([
|
|
|
139
143
|
'pig_variant',
|
|
140
144
|
'predicate',
|
|
141
145
|
'recipe',
|
|
146
|
+
'slot_source',
|
|
142
147
|
'structure',
|
|
143
148
|
'sulfur_cube_archetype',
|
|
144
149
|
'test_environment',
|
|
@@ -157,11 +162,14 @@ export const NormalFileCategories = Object.freeze([
|
|
|
157
162
|
export const WorldgenFileCategories = Object.freeze([
|
|
158
163
|
'worldgen/biome',
|
|
159
164
|
'worldgen/configured_carver',
|
|
160
|
-
'worldgen/configured_feature',
|
|
161
|
-
'worldgen/configured_structure_feature',
|
|
162
|
-
'worldgen/configured_surface_builder',
|
|
165
|
+
'worldgen/configured_feature', // Removed
|
|
166
|
+
'worldgen/configured_structure_feature', // Removed
|
|
167
|
+
'worldgen/configured_surface_builder', // Removed
|
|
163
168
|
'worldgen/density_function',
|
|
169
|
+
'worldgen/feature',
|
|
164
170
|
'worldgen/flat_level_generator_preset',
|
|
171
|
+
'worldgen/material_condition',
|
|
172
|
+
'worldgen/material_rule',
|
|
165
173
|
'worldgen/multi_noise_biome_source_parameter_list',
|
|
166
174
|
'worldgen/noise',
|
|
167
175
|
'worldgen/noise_settings',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
2
|
-
import { type DeepReadonly,
|
|
2
|
+
import { type DeepReadonly, EventDispatcher } from '../common/index.js';
|
|
3
3
|
import type { AstNode } from '../node/index.js';
|
|
4
4
|
import type { RangeLike } from '../source/index.js';
|
|
5
5
|
import type { AllCategory, Symbol, SymbolLocationBuiltInContributor, SymbolLocationMetadata, SymbolMap, SymbolMetadata, SymbolTable, SymbolUsageType } from './Symbol.js';
|
|
@@ -31,7 +31,13 @@ interface DocAndNode {
|
|
|
31
31
|
doc: TextDocument;
|
|
32
32
|
node: AstNode;
|
|
33
33
|
}
|
|
34
|
-
export declare class SymbolUtil
|
|
34
|
+
export declare class SymbolUtil extends EventDispatcher<{
|
|
35
|
+
symbolCreated: SymbolEvent;
|
|
36
|
+
symbolAmended: SymbolEvent;
|
|
37
|
+
symbolRemoved: SymbolEvent;
|
|
38
|
+
symbolLocationCreated: SymbolLocationEvent;
|
|
39
|
+
symbolLocationRemoved: SymbolLocationEvent;
|
|
40
|
+
}> {
|
|
35
41
|
#private;
|
|
36
42
|
/**
|
|
37
43
|
* @internal
|
|
@@ -42,26 +48,11 @@ export declare class SymbolUtil implements ExternalEventEmitter {
|
|
|
42
48
|
*/
|
|
43
49
|
_inDelayMode: boolean;
|
|
44
50
|
get global(): SymbolTable;
|
|
45
|
-
constructor(global: SymbolTable,
|
|
51
|
+
constructor(global: SymbolTable,
|
|
46
52
|
/** @internal */
|
|
47
53
|
_currentContributor?: string,
|
|
48
54
|
/** @internal */
|
|
49
55
|
_inDelayMode?: boolean);
|
|
50
|
-
on(event: 'symbolCreated', callbackFn: (data: SymbolEvent) => void): this;
|
|
51
|
-
on(event: 'symbolAmended', callbackFn: (data: SymbolEvent) => void): this;
|
|
52
|
-
on(event: 'symbolRemoved', callbackFn: (data: SymbolEvent) => void): this;
|
|
53
|
-
on(event: 'symbolLocationCreated', callbackFn: (data: SymbolLocationEvent) => void): this;
|
|
54
|
-
on(event: 'symbolLocationRemoved', callbackFn: (data: SymbolLocationEvent) => void): this;
|
|
55
|
-
once(event: 'symbolCreated', callbackFn: (data: SymbolEvent) => void): this;
|
|
56
|
-
once(event: 'symbolAmended', callbackFn: (data: SymbolEvent) => void): this;
|
|
57
|
-
once(event: 'symbolRemoved', callbackFn: (data: SymbolEvent) => void): this;
|
|
58
|
-
once(event: 'symbolLocationCreated', callbackFn: (data: SymbolLocationEvent) => void): this;
|
|
59
|
-
once(event: 'symbolLocationRemoved', callbackFn: (data: SymbolLocationEvent) => void): this;
|
|
60
|
-
emit(event: 'symbolCreated', data: SymbolEvent): boolean;
|
|
61
|
-
emit(event: 'symbolAmended', data: SymbolEvent): boolean;
|
|
62
|
-
emit(event: 'symbolRemoved', data: SymbolEvent): boolean;
|
|
63
|
-
emit(event: 'symbolLocationCreated', data: SymbolLocationEvent): boolean;
|
|
64
|
-
emit(event: 'symbolLocationRemoved', data: SymbolLocationEvent): boolean;
|
|
65
56
|
/**
|
|
66
57
|
* Build the internal cache of the SymbolUtil according to the current global symbol table.
|
|
67
58
|
*/
|
package/lib/symbol/SymbolUtil.js
CHANGED
|
@@ -5,13 +5,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
8
|
-
import { bigintJsonNumberReplacer, } from '../common/index.js';
|
|
8
|
+
import { bigintJsonNumberReplacer, EventDispatcher } from '../common/index.js';
|
|
9
9
|
import { Range } from '../source/index.js';
|
|
10
10
|
import { SymbolLocation, SymbolPath, SymbolUsageTypes } from './Symbol.js';
|
|
11
|
-
export class SymbolUtil {
|
|
11
|
+
export class SymbolUtil extends EventDispatcher {
|
|
12
12
|
#global;
|
|
13
|
-
#eventEmitter;
|
|
14
|
-
#eventEmitterConstructor;
|
|
15
13
|
#trimmableSymbols = new Set();
|
|
16
14
|
#cache = Object.create(null);
|
|
17
15
|
#currentContributor;
|
|
@@ -26,13 +24,12 @@ export class SymbolUtil {
|
|
|
26
24
|
get global() {
|
|
27
25
|
return this.#global;
|
|
28
26
|
}
|
|
29
|
-
constructor(global,
|
|
27
|
+
constructor(global,
|
|
30
28
|
/** @internal */
|
|
31
29
|
_currentContributor,
|
|
32
30
|
/** @internal */
|
|
33
31
|
_inDelayMode = false) {
|
|
34
|
-
|
|
35
|
-
this.#eventEmitterConstructor = eventEmitterConstructor;
|
|
32
|
+
super();
|
|
36
33
|
this.#global = global;
|
|
37
34
|
this.#currentContributor = _currentContributor;
|
|
38
35
|
this._inDelayMode = _inDelayMode;
|
|
@@ -51,17 +48,6 @@ export class SymbolUtil {
|
|
|
51
48
|
this.#trimmableSymbols.add(path);
|
|
52
49
|
});
|
|
53
50
|
}
|
|
54
|
-
on(event, callbackFn) {
|
|
55
|
-
this.#eventEmitter.on(event, callbackFn);
|
|
56
|
-
return this;
|
|
57
|
-
}
|
|
58
|
-
once(event, callbackFn) {
|
|
59
|
-
this.#eventEmitter.once(event, callbackFn);
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
emit(event, ...args) {
|
|
63
|
-
return this.#eventEmitter.emit(event, ...args);
|
|
64
|
-
}
|
|
65
51
|
/**
|
|
66
52
|
* Build the internal cache of the SymbolUtil according to the current global symbol table.
|
|
67
53
|
*/
|
|
@@ -81,7 +67,7 @@ export class SymbolUtil {
|
|
|
81
67
|
* `applyDelayedEdits` is called, the original SymbolUtil will also be modified.
|
|
82
68
|
*/
|
|
83
69
|
clone() {
|
|
84
|
-
return new SymbolUtil(this.#global, this.#
|
|
70
|
+
return new SymbolUtil(this.#global, this.#currentContributor, true);
|
|
85
71
|
}
|
|
86
72
|
/**
|
|
87
73
|
* Apply edits done during the delay mode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.48",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,20 +18,19 @@
|
|
|
18
18
|
"binary-search": "^1.3.6",
|
|
19
19
|
"decompress": "^4.2.1",
|
|
20
20
|
"follow-redirects": "^1.14.8",
|
|
21
|
-
"pako": "^2.0.4",
|
|
22
21
|
"picomatch": "^4.0.2",
|
|
23
22
|
"rfdc": "^1.3.0",
|
|
24
23
|
"vscode-languageserver-textdocument": "^1.0.4",
|
|
25
24
|
"whatwg-url": "^14.0.0",
|
|
26
|
-
"@spyglassmc/locales": "0.3.
|
|
25
|
+
"@spyglassmc/locales": "0.3.25"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@types/decompress": "^4.2.3",
|
|
30
29
|
"@types/follow-redirects": "^1.14.1",
|
|
31
|
-
"@types/pako": "^2.0.0",
|
|
32
30
|
"@types/picomatch": "^3.0.1",
|
|
33
31
|
"@types/whatwg-url": "^11.0.4",
|
|
34
|
-
"memfs": "^4.51.1"
|
|
32
|
+
"memfs": "^4.51.1",
|
|
33
|
+
"@jsonjoy.com/fs-node-utils": "^4.57.2"
|
|
35
34
|
},
|
|
36
35
|
"publishConfig": {
|
|
37
36
|
"access": "public"
|