@spyglassmc/core 0.4.16 → 0.4.18
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/processor/colorizer/Colorizer.d.ts +1 -1
- package/lib/processor/colorizer/Colorizer.js +1 -0
- package/lib/processor/completer/Completer.d.ts +4 -0
- package/lib/processor/completer/Completer.js +7 -0
- package/lib/processor/completer/builtin.js +4 -1
- package/lib/service/Downloader.js +3 -3
- package/lib/service/FileService.js +14 -2
- package/lib/source/Source.d.ts +4 -4
- package/lib/source/Source.js +12 -10
- package/lib/symbol/Symbol.d.ts +6 -6
- package/lib/symbol/Symbol.js +7 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export declare namespace ColorToken {
|
|
|
17
17
|
*/
|
|
18
18
|
function fillGap(tokens: readonly ColorToken[], targetRange: Range, type: ColorTokenType, modifiers?: ColorTokenModifier[]): ColorToken[];
|
|
19
19
|
}
|
|
20
|
-
export declare const ColorTokenTypes: readonly ["comment", "enum", "enumMember", "function", "keyword", "modifier", "number", "property", "string", "struct", "type", "variable", "error", "literal", "operator", "resourceLocation", "vector"];
|
|
20
|
+
export declare const ColorTokenTypes: readonly ["comment", "enum", "enumMember", "escape", "function", "keyword", "modifier", "number", "property", "string", "struct", "type", "variable", "error", "literal", "operator", "resourceLocation", "vector"];
|
|
21
21
|
export type ColorTokenType = typeof ColorTokenTypes[number];
|
|
22
22
|
export declare const ColorTokenModifiers: readonly ["declaration", "defaultLibrary", "definition", "deprecated", "documentation", "modification", "readonly"];
|
|
23
23
|
export type ColorTokenModifier = typeof ColorTokenModifiers[number];
|
|
@@ -65,6 +65,10 @@ export declare namespace CompletionItem {
|
|
|
65
65
|
* Escape `$`, `\`, and `}` in `textToInsert`
|
|
66
66
|
*/
|
|
67
67
|
function escape(textToInsert: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Un-escape `$`, `\`, and `}` in `textToInsert`
|
|
70
|
+
*/
|
|
71
|
+
function unescape(textToInsert: string): string;
|
|
68
72
|
}
|
|
69
73
|
export declare class InsertTextBuilder {
|
|
70
74
|
#private;
|
|
@@ -35,6 +35,13 @@ export var CompletionItem;
|
|
|
35
35
|
return textToInsert.replace(/([\\$}])/g, '\\$1');
|
|
36
36
|
}
|
|
37
37
|
CompletionItem.escape = escape;
|
|
38
|
+
/**
|
|
39
|
+
* Un-escape `$`, `\`, and `}` in `textToInsert`
|
|
40
|
+
*/
|
|
41
|
+
function unescape(textToInsert) {
|
|
42
|
+
return textToInsert.replace(/\\([\\$}])/g, '$1');
|
|
43
|
+
}
|
|
44
|
+
CompletionItem.unescape = unescape;
|
|
38
45
|
})(CompletionItem || (CompletionItem = {}));
|
|
39
46
|
export class InsertTextBuilder {
|
|
40
47
|
#ans = '';
|
|
@@ -199,7 +199,10 @@ export function escapeString(value, quote) {
|
|
|
199
199
|
if (!quote) {
|
|
200
200
|
return value;
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
// Un-escape and then re-escape completion
|
|
203
|
+
value = CompletionItem.unescape(value);
|
|
204
|
+
value = value.replaceAll('\\', '\\\\').replaceAll(quote, '\\"');
|
|
205
|
+
return CompletionItem.escape(value);
|
|
203
206
|
}
|
|
204
207
|
export const symbol = (node, ctx) => {
|
|
205
208
|
const path = node.options.parentPath ?? [];
|
|
@@ -53,7 +53,7 @@ export class Downloader {
|
|
|
53
53
|
}
|
|
54
54
|
const deserializer = cache.deserializer ?? ((b) => b);
|
|
55
55
|
const ans = await transformer(deserializer(cachedBuffer));
|
|
56
|
-
this.logger.info(`[Downloader] [${id}] Skipped downloading thanks to cache ${cacheChecksum}`);
|
|
56
|
+
this.logger.info(`[Downloader] [${id}] Skipped downloading thanks to cache ${cacheChecksum} (${cachedBuffer.length} bytes)`);
|
|
57
57
|
return ans;
|
|
58
58
|
}
|
|
59
59
|
catch (e) {
|
|
@@ -103,7 +103,7 @@ export class Downloader {
|
|
|
103
103
|
this.logger.error(`[Downloader] [${id}] Caching file ${cacheUri}`, e);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
this.logger.info(`[Downloader] [${id}] Downloaded from ${uri}`);
|
|
106
|
+
this.logger.info(`[Downloader] [${id}] Downloaded from ${uri} (${buffer.length} bytes)`);
|
|
107
107
|
return await transformer(buffer);
|
|
108
108
|
}
|
|
109
109
|
catch (e) {
|
|
@@ -113,7 +113,7 @@ export class Downloader {
|
|
|
113
113
|
const cachedBuffer = await fileUtil.readFile(this.externals, cacheUri);
|
|
114
114
|
const deserializer = cache.deserializer ?? ((b) => b);
|
|
115
115
|
const ans = await transformer(deserializer(cachedBuffer));
|
|
116
|
-
this.logger.warn(`[Downloader] [${id}] Fell back to cached file ${cacheUri}`);
|
|
116
|
+
this.logger.warn(`[Downloader] [${id}] Fell back to cached file ${cacheUri} (${cachedBuffer.length} bytes)`);
|
|
117
117
|
return ans;
|
|
118
118
|
}
|
|
119
119
|
catch (e) {
|
|
@@ -236,14 +236,26 @@ export class ArchiveUriSupporter {
|
|
|
236
236
|
if (entries.has(archiveName)) {
|
|
237
237
|
throw new Error(`A different URI with ${archiveName} already exists`);
|
|
238
238
|
}
|
|
239
|
+
/// Debug message for #1609
|
|
240
|
+
logger.info(`[ArchiveUriSupporter#create] Extracting archive ${archiveName} from ${uri}`);
|
|
239
241
|
const files = await externals.archive.decompressBall(await externals.fs.readFile(uri), { stripLevel: typeof info?.startDepth === 'number' ? info.startDepth : 0 });
|
|
240
|
-
|
|
242
|
+
const newEntries = new Map(files.map((f) => [f.path.replace(/\\/g, '/'), f]));
|
|
243
|
+
/// Debug message for #1609
|
|
244
|
+
logger.info(`[ArchiveUriSupporter#create] Extracted ${files.length} files, adding ${newEntries.size} entries`);
|
|
245
|
+
for (const [path, entry] of [...newEntries.entries()].slice(0, 20)) {
|
|
246
|
+
logger.info(`[ArchiveUriSupporter#create] ${path} (${entry.data.length} bytes)`);
|
|
247
|
+
}
|
|
248
|
+
entries.set(archiveName, newEntries);
|
|
241
249
|
}
|
|
242
250
|
}
|
|
243
251
|
catch (e) {
|
|
244
|
-
logger.error(`[
|
|
252
|
+
logger.error(`[ArchiveUriSupporter#create] Bad dependency ${uri}`, e);
|
|
245
253
|
}
|
|
246
254
|
}
|
|
255
|
+
/// Debug message for #1609
|
|
256
|
+
logger.info(`[ArchiveUriSupporter#create] Finalizing with ${entries.size} archives: ${[
|
|
257
|
+
...entries.keys(),
|
|
258
|
+
]}`);
|
|
247
259
|
return new ArchiveUriSupporter(externals, entries);
|
|
248
260
|
}
|
|
249
261
|
}
|
package/lib/source/Source.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export declare class ReadonlySource {
|
|
|
37
37
|
* @param offset The index to offset from cursor. Defaults to 0
|
|
38
38
|
*/
|
|
39
39
|
peek(length?: number, offset?: number): string;
|
|
40
|
+
canRead(length?: number): boolean;
|
|
41
|
+
canReadInLine(): boolean;
|
|
40
42
|
/**
|
|
41
43
|
* If the `expectedValue` is right after the cursor, returns `true`. Otherwise returns `false`.
|
|
42
44
|
*
|
|
@@ -48,8 +50,8 @@ export declare class ReadonlySource {
|
|
|
48
50
|
tryPeekAfterWhitespace(expectedValue: string): boolean;
|
|
49
51
|
peekUntil(...terminators: string[]): string;
|
|
50
52
|
peekLine(): string;
|
|
51
|
-
peekRemaining(): string;
|
|
52
|
-
matchPattern(regex: RegExp): boolean;
|
|
53
|
+
peekRemaining(offset?: number): string;
|
|
54
|
+
matchPattern(regex: RegExp, offset?: number): boolean;
|
|
53
55
|
/**
|
|
54
56
|
* If there is a non-space character between `cursor + offset` (inclusive) and the next newline, returns `true`. Otherwise returns `false`.
|
|
55
57
|
*
|
|
@@ -67,8 +69,6 @@ export declare class Source extends ReadonlySource {
|
|
|
67
69
|
get cursor(): number;
|
|
68
70
|
set cursor(cursor: number);
|
|
69
71
|
clone(): Source;
|
|
70
|
-
canRead(length?: number): boolean;
|
|
71
|
-
canReadInLine(): boolean;
|
|
72
72
|
read(): string;
|
|
73
73
|
/**
|
|
74
74
|
* Skips the current character.
|
package/lib/source/Source.js
CHANGED
|
@@ -59,6 +59,14 @@ export class ReadonlySource {
|
|
|
59
59
|
peek(length = 1, offset = 0) {
|
|
60
60
|
return this.string.slice(this.innerCursor + offset, this.innerCursor + offset + length);
|
|
61
61
|
}
|
|
62
|
+
canRead(length = 1) {
|
|
63
|
+
const needed = this.innerCursor + length;
|
|
64
|
+
const available = this.string.length;
|
|
65
|
+
return this.innerCursor + length <= this.string.length;
|
|
66
|
+
}
|
|
67
|
+
canReadInLine() {
|
|
68
|
+
return this.canRead() && this.peek() !== CR && this.peek() !== LF;
|
|
69
|
+
}
|
|
62
70
|
/**
|
|
63
71
|
* If the `expectedValue` is right after the cursor, returns `true`. Otherwise returns `false`.
|
|
64
72
|
*
|
|
@@ -93,11 +101,11 @@ export class ReadonlySource {
|
|
|
93
101
|
peekLine() {
|
|
94
102
|
return this.peekUntil(CR, LF);
|
|
95
103
|
}
|
|
96
|
-
peekRemaining() {
|
|
97
|
-
return this.string.slice(this.innerCursor);
|
|
104
|
+
peekRemaining(offset = 0) {
|
|
105
|
+
return this.string.slice(this.innerCursor + offset);
|
|
98
106
|
}
|
|
99
|
-
matchPattern(regex) {
|
|
100
|
-
return regex.test(this.peekRemaining());
|
|
107
|
+
matchPattern(regex, offset = 0) {
|
|
108
|
+
return regex.test(this.peekRemaining(offset));
|
|
101
109
|
}
|
|
102
110
|
/**
|
|
103
111
|
* If there is a non-space character between `cursor + offset` (inclusive) and the next newline, returns `true`. Otherwise returns `false`.
|
|
@@ -149,12 +157,6 @@ export class Source extends ReadonlySource {
|
|
|
149
157
|
ans.innerCursor = this.innerCursor;
|
|
150
158
|
return ans;
|
|
151
159
|
}
|
|
152
|
-
canRead(length = 1) {
|
|
153
|
-
return this.innerCursor + length <= this.string.length;
|
|
154
|
-
}
|
|
155
|
-
canReadInLine() {
|
|
156
|
-
return this.canRead() && this.peek() !== CR && this.peek() !== LF;
|
|
157
|
-
}
|
|
158
160
|
read() {
|
|
159
161
|
return this.string.charAt(this.innerCursor++);
|
|
160
162
|
}
|
package/lib/symbol/Symbol.d.ts
CHANGED
|
@@ -23,17 +23,17 @@ export declare const DataMiscCategories: readonly ["attribute_modifier", "bossba
|
|
|
23
23
|
export type DataMiscCategory = (typeof DataMiscCategories)[number];
|
|
24
24
|
export declare const DatapackCategories: readonly ["attribute_modifier_uuid", "objective", "score_holder", "tag", "team", "advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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"];
|
|
25
25
|
export type DatapackCategory = (typeof DatapackCategories)[number];
|
|
26
|
-
export declare const AssetsFileCategories: readonly ["atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "item_definition", "lang", "model", "particle", "post_effect", "shader", "shader/fragment", "shader/vertex", "sound", "texture"];
|
|
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"];
|
|
27
27
|
export type AssetsFileCategory = (typeof AssetsFileCategories)[number];
|
|
28
|
-
export declare const AssetsMiscCategories: readonly ["shader_target"];
|
|
28
|
+
export declare const AssetsMiscCategories: readonly ["texture_slot", "shader_target", "translation_key"];
|
|
29
29
|
export type AssetsMiscCategory = (typeof AssetsMiscCategories)[number];
|
|
30
|
-
export declare const ResourcepackCategories: readonly ["shader_target", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "item_definition", "lang", "model", "particle", "post_effect", "shader", "shader/fragment", "shader/vertex", "sound", "texture"];
|
|
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"];
|
|
31
31
|
export type ResourcepackCategory = (typeof ResourcepackCategories)[number];
|
|
32
|
-
export declare const FileCategories: readonly ["advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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", "item_definition", "lang", "model", "particle", "post_effect", "shader", "shader/fragment", "shader/vertex", "sound", "texture"];
|
|
32
|
+
export declare const FileCategories: readonly ["advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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"];
|
|
33
33
|
export type FileCategory = (typeof FileCategories)[number];
|
|
34
|
-
export declare const AllCategories: readonly ["attribute_modifier_uuid", "objective", "score_holder", "tag", "team", "advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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", "shader_target", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "item_definition", "lang", "model", "particle", "post_effect", "shader", "shader/fragment", "shader/vertex", "sound", "texture", "mcdoc", "mcdoc/dispatcher", "activity", "armor_material", "attribute", "block", "block_entity_type", "block_predicate_type", "block_type", "cat_variant", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_type", "decorated_pot_pattern", "decorated_pot_patterns", "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", "float_provider_type", "fluid", "frog_variant", "game_event", "height_provider_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", "particle_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", "sound_event", "stat_type", "trigger_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_rule", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
34
|
+
export declare const AllCategories: readonly ["attribute_modifier_uuid", "objective", "score_holder", "tag", "team", "advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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", "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", "mcdoc", "mcdoc/dispatcher", "activity", "armor_material", "attribute", "block", "block_entity_type", "block_predicate_type", "block_type", "cat_variant", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_type", "decorated_pot_pattern", "decorated_pot_patterns", "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", "float_provider_type", "fluid", "frog_variant", "game_event", "height_provider_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", "particle_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", "sound_event", "stat_type", "trigger_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_rule", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
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", "shader_target", "advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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", "item_definition", "lang", "model", "particle", "post_effect", "shader", "shader/fragment", "shader/vertex", "sound", "texture", "activity", "armor_material", "attribute", "block", "block_entity_type", "block_predicate_type", "block_type", "cat_variant", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_type", "decorated_pot_pattern", "decorated_pot_patterns", "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", "float_provider_type", "fluid", "frog_variant", "game_event", "height_provider_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", "particle_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", "sound_event", "stat_type", "trigger_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_rule", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
36
|
+
export declare const ResourceLocationCategories: readonly ["mcdoc/dispatcher", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "texture_slot", "shader_target", "translation_key", "advancement", "banner_pattern", "chat_type", "damage_type", "dimension", "dimension_type", "enchantment", "enchantment_provider", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "predicate", "recipe", "structure", "trial_spawner", "trim_material", "trim_pattern", "wolf_variant", ...("tag/function" | "tag/activity" | "tag/armor_material" | "tag/attribute" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/data_component_type" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "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_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/game_event" | "tag/height_provider_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_sub_predicate_type" | "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/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/particle_type" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "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/sound_event" | "tag/stat_type" | "tag/trigger_type" | "tag/villager_profession" | "tag/villager_type" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/decorator" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_rule" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/advancement" | "tag/banner_pattern" | "tag/chat_type" | "tag/damage_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_provider" | "tag/item_modifier" | "tag/jukebox_song" | "tag/loot_table" | "tag/painting_variant" | "tag/predicate" | "tag/recipe" | "tag/structure" | "tag/trial_spawner" | "tag/trim_material" | "tag/trim_pattern" | "tag/wolf_variant" | "tag/worldgen/biome" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/density_function" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/processor_list" | "tag/worldgen/structure" | "tag/worldgen/structure_set" | "tag/worldgen/template_pool" | "tag/worldgen/world_preset")[], "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", "activity", "armor_material", "attribute", "block", "block_entity_type", "block_predicate_type", "block_type", "cat_variant", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_type", "decorated_pot_pattern", "decorated_pot_patterns", "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", "float_provider_type", "fluid", "frog_variant", "game_event", "height_provider_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", "particle_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", "sound_event", "stat_type", "trigger_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_rule", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
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
|
@@ -175,19 +175,26 @@ export const AssetsFileCategories = Object.freeze([
|
|
|
175
175
|
'font/ttf',
|
|
176
176
|
'font/otf',
|
|
177
177
|
'font/unihex',
|
|
178
|
+
'gpu_warnlist',
|
|
178
179
|
'item_definition', // items
|
|
179
180
|
'lang',
|
|
181
|
+
'lang/deprecated',
|
|
180
182
|
'model',
|
|
181
183
|
'particle',
|
|
182
184
|
'post_effect',
|
|
185
|
+
'regional_compliancies',
|
|
183
186
|
'shader',
|
|
184
187
|
'shader/fragment',
|
|
185
188
|
'shader/vertex',
|
|
186
189
|
'sound',
|
|
190
|
+
'sounds', // sounds.json
|
|
187
191
|
'texture',
|
|
192
|
+
'texture_meta', // *.png.mcmeta
|
|
188
193
|
]);
|
|
189
194
|
export const AssetsMiscCategories = Object.freeze([
|
|
195
|
+
'texture_slot',
|
|
190
196
|
'shader_target',
|
|
197
|
+
'translation_key',
|
|
191
198
|
]);
|
|
192
199
|
export const ResourcepackCategories = Object.freeze([
|
|
193
200
|
...AssetsMiscCategories,
|