@spyglassmc/core 0.4.45 → 0.4.47
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/Dev.js +3 -2
- 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 +0 -19
- package/lib/common/externals/NodeJsExternals.js +0 -20
- package/lib/common/externals/index.d.ts +0 -17
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +2 -0
- package/lib/common/json.d.ts +34 -0
- package/lib/common/json.js +53 -0
- package/lib/common/util.d.ts +44 -7
- package/lib/common/util.js +94 -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.d.ts +1 -1
- package/lib/service/CacheService.js +7 -8
- 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.js +1 -1
- package/lib/service/fileUtil.d.ts +2 -2
- package/lib/service/fileUtil.js +9 -9
- package/lib/symbol/Symbol.d.ts +6 -6
- package/lib/symbol/Symbol.js +3 -2
- package/lib/symbol/SymbolUtil.d.ts +9 -18
- package/lib/symbol/SymbolUtil.js +6 -19
- package/package.json +4 -5
package/lib/symbol/Symbol.d.ts
CHANGED
|
@@ -15,13 +15,13 @@ export type TaggableResourceLocationCategory = (typeof TaggableResourceLocationC
|
|
|
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_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/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "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", "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/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_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/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "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/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"];
|
|
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", "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/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_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/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "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/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", "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", "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/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_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/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "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/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", "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", "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/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_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/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "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/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", "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/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"];
|
|
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", "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/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_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/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "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/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", "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/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"];
|
|
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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import rfdc from 'rfdc';
|
|
2
2
|
import { isIterable } from '../common/index.js';
|
|
3
|
+
import { bigintJsonLosslessReplacer, bigintJsonLosslessReviver } from '../common/json.js';
|
|
3
4
|
import { Location, PositionRange, Range } from '../source/index.js';
|
|
4
5
|
// #region Mcdoc Categories
|
|
5
6
|
export const McdocCategories = Object.freeze(['mcdoc', 'mcdoc/dispatcher']);
|
|
@@ -399,14 +400,14 @@ export var SymbolTable;
|
|
|
399
400
|
* a symbol table through the {@link deserialize} method.
|
|
400
401
|
*/
|
|
401
402
|
function serialize(table) {
|
|
402
|
-
return JSON.stringify(unlink(table));
|
|
403
|
+
return JSON.stringify(unlink(table), bigintJsonLosslessReplacer);
|
|
403
404
|
}
|
|
404
405
|
SymbolTable.serialize = serialize;
|
|
405
406
|
/**
|
|
406
407
|
* @returns The symbol table represented by the string returned by the {@link serialize} method.
|
|
407
408
|
*/
|
|
408
409
|
function deserialize(json) {
|
|
409
|
-
return link(JSON.parse(json));
|
|
410
|
+
return link(JSON.parse(json, bigintJsonLosslessReviver));
|
|
410
411
|
}
|
|
411
412
|
SymbolTable.deserialize = deserialize;
|
|
412
413
|
})(SymbolTable || (SymbolTable = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
2
|
-
import type
|
|
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,12 +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, EventDispatcher } from '../common/index.js';
|
|
8
9
|
import { Range } from '../source/index.js';
|
|
9
10
|
import { SymbolLocation, SymbolPath, SymbolUsageTypes } from './Symbol.js';
|
|
10
|
-
export class SymbolUtil {
|
|
11
|
+
export class SymbolUtil extends EventDispatcher {
|
|
11
12
|
#global;
|
|
12
|
-
#eventEmitter;
|
|
13
|
-
#eventEmitterConstructor;
|
|
14
13
|
#trimmableSymbols = new Set();
|
|
15
14
|
#cache = Object.create(null);
|
|
16
15
|
#currentContributor;
|
|
@@ -25,13 +24,12 @@ export class SymbolUtil {
|
|
|
25
24
|
get global() {
|
|
26
25
|
return this.#global;
|
|
27
26
|
}
|
|
28
|
-
constructor(global,
|
|
27
|
+
constructor(global,
|
|
29
28
|
/** @internal */
|
|
30
29
|
_currentContributor,
|
|
31
30
|
/** @internal */
|
|
32
31
|
_inDelayMode = false) {
|
|
33
|
-
|
|
34
|
-
this.#eventEmitterConstructor = eventEmitterConstructor;
|
|
32
|
+
super();
|
|
35
33
|
this.#global = global;
|
|
36
34
|
this.#currentContributor = _currentContributor;
|
|
37
35
|
this._inDelayMode = _inDelayMode;
|
|
@@ -50,17 +48,6 @@ export class SymbolUtil {
|
|
|
50
48
|
this.#trimmableSymbols.add(path);
|
|
51
49
|
});
|
|
52
50
|
}
|
|
53
|
-
on(event, callbackFn) {
|
|
54
|
-
this.#eventEmitter.on(event, callbackFn);
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
once(event, callbackFn) {
|
|
58
|
-
this.#eventEmitter.once(event, callbackFn);
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
|
-
emit(event, ...args) {
|
|
62
|
-
return this.#eventEmitter.emit(event, ...args);
|
|
63
|
-
}
|
|
64
51
|
/**
|
|
65
52
|
* Build the internal cache of the SymbolUtil according to the current global symbol table.
|
|
66
53
|
*/
|
|
@@ -80,7 +67,7 @@ export class SymbolUtil {
|
|
|
80
67
|
* `applyDelayedEdits` is called, the original SymbolUtil will also be modified.
|
|
81
68
|
*/
|
|
82
69
|
clone() {
|
|
83
|
-
return new SymbolUtil(this.#global, this.#
|
|
70
|
+
return new SymbolUtil(this.#global, this.#currentContributor, true);
|
|
84
71
|
}
|
|
85
72
|
/**
|
|
86
73
|
* Apply edits done during the delay mode.
|
|
@@ -831,7 +818,7 @@ export var SymbolFormatter;
|
|
|
831
818
|
+ ` {${symbol.category}${symbol.subcategory ? ` (${symbol.subcategory})` : ''}}`
|
|
832
819
|
+ ` [${stringifyVisibility(symbol.visibility, symbol.visibilityRestriction)}]`);
|
|
833
820
|
if (symbol.data) {
|
|
834
|
-
ans.push(`${IndentChar}data: ${JSON.stringify(symbol.data)}`);
|
|
821
|
+
ans.push(`${IndentChar}data: ${JSON.stringify(symbol.data, bigintJsonNumberReplacer)}`);
|
|
835
822
|
}
|
|
836
823
|
if (symbol.desc) {
|
|
837
824
|
ans.push(`${IndentChar}description: ${symbol.desc}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.47",
|
|
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.24"
|
|
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"
|