@spyglassmc/core 0.4.47 → 0.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/externals/NodeJsExternals.d.ts +7 -4
- package/lib/common/externals/NodeJsExternals.js +192 -26
- package/lib/common/util.d.ts +1 -0
- package/lib/common/util.js +3 -0
- package/lib/service/fetcher.d.ts +8 -1
- package/lib/service/fetcher.js +62 -9
- package/lib/symbol/Symbol.d.ts +10 -10
- package/lib/symbol/Symbol.js +15 -7
- package/package.json +2 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import fs
|
|
2
|
-
import
|
|
1
|
+
import type fs from 'node:fs';
|
|
2
|
+
import fsp from 'node:fs/promises';
|
|
3
|
+
import { type DecompressedFile, type RootUriString } from '../../index.js';
|
|
4
|
+
import { Logger } from '../Logger.js';
|
|
3
5
|
import type { FsLocation } from './index.js';
|
|
4
|
-
export declare function getNodeJsExternals({ cacheRoot, nodeFsp }?: {
|
|
6
|
+
export declare function getNodeJsExternals({ cacheRoot, logger, nodeFsp }?: {
|
|
5
7
|
cacheRoot?: RootUriString;
|
|
8
|
+
logger?: Logger;
|
|
6
9
|
nodeFsp?: typeof fsp;
|
|
7
10
|
}): Readonly<{
|
|
8
11
|
archive: {
|
|
@@ -74,7 +77,7 @@ export declare const NodeJsExternals: Readonly<{
|
|
|
74
77
|
*/
|
|
75
78
|
declare class HttpCache implements Cache {
|
|
76
79
|
#private;
|
|
77
|
-
constructor(cacheRoot: RootUriString | undefined);
|
|
80
|
+
constructor(cacheRoot: RootUriString | undefined, logger: Logger, nodeFsp: typeof fsp);
|
|
78
81
|
match(request: RequestInfo | URL, _options?: CacheQueryOptions | undefined): Promise<Response | undefined>;
|
|
79
82
|
put(request: RequestInfo | URL, response: Response): Promise<void>;
|
|
80
83
|
add(): Promise<void>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import decompress from 'decompress';
|
|
2
2
|
import { Buffer } from 'node:buffer';
|
|
3
3
|
import cp from 'node:child_process';
|
|
4
|
-
import
|
|
4
|
+
import { createHash, randomUUID } from 'node:crypto';
|
|
5
|
+
import fsp from 'node:fs/promises';
|
|
5
6
|
import os from 'node:os';
|
|
6
7
|
import process from 'node:process';
|
|
7
8
|
import stream from 'node:stream';
|
|
9
|
+
import { pipeline } from 'node:stream/promises';
|
|
8
10
|
import url from 'node:url';
|
|
9
11
|
import { promisify } from 'node:util';
|
|
10
|
-
|
|
12
|
+
import { Dev, isObject } from '../../index.js';
|
|
13
|
+
import { Logger } from '../Logger.js';
|
|
14
|
+
export function getNodeJsExternals({ cacheRoot, logger = Logger.create(), nodeFsp = fsp } = {}) {
|
|
11
15
|
return Object.freeze({
|
|
12
16
|
archive: {
|
|
13
17
|
decompressBall(buffer, options) {
|
|
@@ -74,7 +78,7 @@ export function getNodeJsExternals({ cacheRoot, nodeFsp = fsp } = {}) {
|
|
|
74
78
|
},
|
|
75
79
|
web: {
|
|
76
80
|
getCache: async () => {
|
|
77
|
-
return new HttpCache(cacheRoot);
|
|
81
|
+
return new HttpCache(cacheRoot, logger, nodeFsp);
|
|
78
82
|
},
|
|
79
83
|
},
|
|
80
84
|
});
|
|
@@ -96,55 +100,217 @@ function toPath(path) {
|
|
|
96
100
|
return uriToPath(path);
|
|
97
101
|
}
|
|
98
102
|
const uriToPath = (uri) => url.fileURLToPath(uri);
|
|
103
|
+
var CacheIndex;
|
|
104
|
+
(function (CacheIndex) {
|
|
105
|
+
function assert(val) {
|
|
106
|
+
if (!isObject(val)) {
|
|
107
|
+
throw new Error('Expected an object');
|
|
108
|
+
}
|
|
109
|
+
if (!('index' in val && isObject(val.index))) {
|
|
110
|
+
throw new Error("Expected 'index' to exist as an object");
|
|
111
|
+
}
|
|
112
|
+
if (!(Object.values(val.index).every((i) => isObject(i)
|
|
113
|
+
&& Object.values(i).every((v) => isObject(v)
|
|
114
|
+
&& 'status' in v && typeof v.status === 'number'
|
|
115
|
+
&& 'statusText' in v && typeof v.statusText === 'string'
|
|
116
|
+
&& 'headers' in v && isObject(v.headers)
|
|
117
|
+
&& Object.values(v.headers).every((s) => typeof s === 'string')
|
|
118
|
+
&& 'sha1' in v && typeof v.sha1 === 'string' && /^[0-9a-f]{40}$/.test(v.sha1)
|
|
119
|
+
&& 'cacheTime' in v && typeof v.cacheTime === 'number')))) {
|
|
120
|
+
throw new Error('Malformed index structure');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
CacheIndex.assert = assert;
|
|
124
|
+
})(CacheIndex || (CacheIndex = {}));
|
|
99
125
|
/**
|
|
100
126
|
* A non-spec-compliant, non-complete implementation of the Cache Web API for use in Spyglass.
|
|
101
127
|
* This class stores the cached response on the file system under the cache root.
|
|
102
128
|
*/
|
|
103
129
|
class HttpCache {
|
|
104
130
|
#cacheRoot;
|
|
105
|
-
|
|
131
|
+
#httpRoot;
|
|
132
|
+
#indexUri;
|
|
133
|
+
#objectsRoot;
|
|
134
|
+
#tempRoot;
|
|
135
|
+
#logger;
|
|
136
|
+
#fsp;
|
|
137
|
+
#index;
|
|
138
|
+
#loadIndexPromise;
|
|
139
|
+
constructor(cacheRoot, logger, nodeFsp) {
|
|
106
140
|
if (cacheRoot) {
|
|
107
|
-
this.#cacheRoot =
|
|
141
|
+
this.#cacheRoot = cacheRoot;
|
|
142
|
+
this.#httpRoot = `${this.#cacheRoot}http/`;
|
|
143
|
+
this.#indexUri = `${this.#httpRoot}index.json`;
|
|
144
|
+
this.#objectsRoot = `${this.#httpRoot}objects/`;
|
|
145
|
+
this.#tempRoot = `${this.#httpRoot}temp/`;
|
|
108
146
|
}
|
|
147
|
+
this.#logger = logger;
|
|
148
|
+
this.#fsp = nodeFsp;
|
|
109
149
|
}
|
|
110
150
|
async match(request, _options) {
|
|
111
|
-
if (!this.#
|
|
151
|
+
if (!(this.#indexUri && this.#objectsRoot && this.#tempRoot)) {
|
|
152
|
+
return undefined;
|
|
153
|
+
}
|
|
154
|
+
const index = await this.#loadIndex(this.#indexUri);
|
|
155
|
+
const requestUri = request instanceof Request ? request.url : request.toString();
|
|
156
|
+
const requestRange = request instanceof Request ? request.headers.get('range') : undefined;
|
|
157
|
+
const indexEntry = index.index[requestUri]?.[requestRange ?? ''];
|
|
158
|
+
if (!indexEntry) {
|
|
112
159
|
return undefined;
|
|
113
160
|
}
|
|
114
|
-
const fileName = this.#getFileName(request);
|
|
115
161
|
try {
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// stream/web ReadableStream -> DOM ReadableStream
|
|
124
|
-
{ headers: { etag } });
|
|
162
|
+
const objectFileHandle = await this.#fsp.open(this.#getObjectUri(this.#objectsRoot, indexEntry.sha1));
|
|
163
|
+
const bodyStream = objectFileHandle.createReadStream({ autoClose: true });
|
|
164
|
+
return new Response(stream.Readable.toWeb(bodyStream), {
|
|
165
|
+
headers: indexEntry.headers,
|
|
166
|
+
status: indexEntry.status,
|
|
167
|
+
statusText: indexEntry.statusText,
|
|
168
|
+
});
|
|
125
169
|
}
|
|
126
170
|
catch (e) {
|
|
127
171
|
if (e?.code === 'ENOENT') {
|
|
172
|
+
this.#logger.warn(`Object file for ${JSON.stringify(indexEntry)} does not exist`, e);
|
|
173
|
+
delete index.index[requestUri]?.[requestRange ?? ''];
|
|
174
|
+
if (Object.values(index.index[requestUri]).length === 0) {
|
|
175
|
+
delete index.index[requestUri];
|
|
176
|
+
}
|
|
177
|
+
await this.#saveIndex(this.#indexUri, this.#tempRoot);
|
|
128
178
|
return undefined;
|
|
129
179
|
}
|
|
130
180
|
throw e;
|
|
131
181
|
}
|
|
132
182
|
}
|
|
133
183
|
async put(request, response) {
|
|
184
|
+
if (!(this.#tempRoot && this.#objectsRoot && this.#indexUri && response.body)) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
134
187
|
const etag = response.headers.get('etag');
|
|
135
|
-
|
|
188
|
+
const lastModified = response.headers.get('last-modified');
|
|
189
|
+
if (!(etag || lastModified)) {
|
|
136
190
|
return;
|
|
137
191
|
}
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
192
|
+
const requestUri = request instanceof Request ? request.url : request.toString();
|
|
193
|
+
const requestRange = request instanceof Request ? request.headers.get('range') : undefined;
|
|
194
|
+
// Save response body in a temp file and computes its SHA-1 digest
|
|
195
|
+
const { bodySha1, bodyTempUri } = await this.#saveResponseBody(response.body, this.#tempRoot);
|
|
196
|
+
// Update the index
|
|
197
|
+
const index = await this.#loadIndex(this.#indexUri);
|
|
198
|
+
index.index[requestUri] ??= {};
|
|
199
|
+
const previousEntry = index.index[requestUri][requestRange ?? ''];
|
|
200
|
+
index.index[requestUri][requestRange ?? ''] = {
|
|
201
|
+
status: response.status,
|
|
202
|
+
statusText: response.statusText,
|
|
203
|
+
headers: Object.fromEntries(response.headers),
|
|
204
|
+
sha1: bodySha1,
|
|
205
|
+
cacheTime: Date.now(),
|
|
206
|
+
};
|
|
207
|
+
await this.#saveIndex(this.#indexUri, this.#tempRoot);
|
|
208
|
+
if (previousEntry) {
|
|
209
|
+
await this.#cleanUpDanglingObject(this.#objectsRoot, index, previousEntry.sha1);
|
|
210
|
+
}
|
|
211
|
+
// Rename the temp body file to its final location in the content-addressable object store
|
|
212
|
+
// match() would gracefully handle missing object if this step fails for any reason
|
|
213
|
+
const objectUri = this.#getObjectUri(this.#objectsRoot, bodySha1);
|
|
214
|
+
await this.#fsp.mkdir(new URL('.', objectUri), { recursive: true, mode: 0o755 });
|
|
215
|
+
await this.#fsp.rename(bodyTempUri, objectUri);
|
|
216
|
+
}
|
|
217
|
+
async #saveResponseBody(body, tempRoot) {
|
|
218
|
+
const bodyStream = stream.Readable.fromWeb(body);
|
|
219
|
+
const bodyHash = createHash('sha1');
|
|
220
|
+
// Tee the body stream to both a temporary file write stream and the SHA-1 hash stream
|
|
221
|
+
const tempUri = new URL(`body.${randomUUID()}.tmp`, tempRoot);
|
|
222
|
+
await this.#fsp.mkdir(new URL(tempRoot), { recursive: true, mode: 0o755 });
|
|
223
|
+
const tempHandle = await this.#fsp.open(tempUri, 'w', 0o644);
|
|
224
|
+
const writeStream = tempHandle.createWriteStream({ autoClose: true });
|
|
225
|
+
bodyStream.pipe(bodyHash);
|
|
226
|
+
await pipeline(bodyStream, writeStream);
|
|
227
|
+
const bodySha1 = bodyHash.digest('hex');
|
|
228
|
+
return { bodySha1, bodyTempUri: tempUri };
|
|
229
|
+
}
|
|
230
|
+
async #loadIndex(indexUri) {
|
|
231
|
+
await (this.#loadIndexPromise ??= (async () => {
|
|
232
|
+
try {
|
|
233
|
+
const parsedIndex = JSON.parse(await this.#fsp.readFile(new URL(indexUri), 'utf8'));
|
|
234
|
+
CacheIndex.assert(parsedIndex);
|
|
235
|
+
this.#index = parsedIndex;
|
|
236
|
+
}
|
|
237
|
+
catch (e) {
|
|
238
|
+
if (e.code === 'ENOENT') {
|
|
239
|
+
// Triger legacy cache clean up if no index file for the new cache scheme exists.
|
|
240
|
+
this.#logger.info('[HttpCache] No cache index found; cleaning up legacy cache files');
|
|
241
|
+
await this.#cleanUpLegacyCache();
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
this.#logger.warn('[HttpCache] Corrupted cache index', e);
|
|
245
|
+
}
|
|
246
|
+
this.#index = { index: {} };
|
|
247
|
+
}
|
|
248
|
+
})());
|
|
249
|
+
return this.#index;
|
|
250
|
+
}
|
|
251
|
+
async #saveIndex(indexUri, tempRoot) {
|
|
252
|
+
try {
|
|
253
|
+
Dev.assertDefined(this.#index);
|
|
254
|
+
const tempUri = new URL(`index.${randomUUID()}.tmp`, tempRoot);
|
|
255
|
+
await this.#fsp.mkdir(new URL(tempRoot), { recursive: true, mode: 0o755 });
|
|
256
|
+
await this.#fsp.writeFile(tempUri, `${JSON.stringify(this.#index)}${os.EOL}`, {
|
|
257
|
+
mode: 0o644,
|
|
258
|
+
});
|
|
259
|
+
await this.#fsp.rename(tempUri, new URL(indexUri));
|
|
260
|
+
}
|
|
261
|
+
catch (e) {
|
|
262
|
+
this.#logger.warn('[HttpCache] Failed saving index', e);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Remove cache files used by older versions of Spyglass.
|
|
267
|
+
* - until v2026.5.8+8c7f6e, `${cacheRoot}downloader/`
|
|
268
|
+
* - until v2026.5.16+9c4fa2, `${cacheRoot}http/${base64UrlEncoded}.${'bin' | 'etag'}`
|
|
269
|
+
*/
|
|
270
|
+
async #cleanUpLegacyCache() {
|
|
271
|
+
if (!this.#httpRoot) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
try {
|
|
275
|
+
await this.#fsp.rm(new URL('downloader/', this.#cacheRoot), { recursive: true });
|
|
276
|
+
}
|
|
277
|
+
catch (e) {
|
|
278
|
+
if (e.code !== 'ENOENT') {
|
|
279
|
+
this.#logger.warn('[HttpCache] Failed cleaning up downloader/ dir', e);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
try {
|
|
283
|
+
const httpDir = await this.#fsp.opendir(new URL(this.#httpRoot));
|
|
284
|
+
for await (const entry of httpDir) {
|
|
285
|
+
if (entry.isFile() && (entry.name.endsWith('.bin') || entry.name.endsWith('.etag'))) {
|
|
286
|
+
await this.#fsp.rm(new URL(entry.name, this.#httpRoot));
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
catch (e) {
|
|
291
|
+
if (e.code !== 'ENOENT') {
|
|
292
|
+
this.#logger.warn('[HttpCache] Failed cleaning up legacy cache files', e);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
async #cleanUpDanglingObject(objectsRoot, index, sha1) {
|
|
297
|
+
if (Object.values(index.index).some((i) => Object.values(i).some((v) => v.sha1 === sha1))) {
|
|
298
|
+
// The object is still referenced
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
try {
|
|
302
|
+
await this.#fsp.rm(this.#getObjectUri(objectsRoot, sha1));
|
|
303
|
+
return true;
|
|
304
|
+
}
|
|
305
|
+
catch (e) {
|
|
306
|
+
if (e.code !== 'ENOENT') {
|
|
307
|
+
this.#logger.warn('[HttpCache] Failed cleaning up dangling object', e);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return false;
|
|
144
311
|
}
|
|
145
|
-
#
|
|
146
|
-
|
|
147
|
-
return Buffer.from(uriString, 'utf8').toString('base64url');
|
|
312
|
+
#getObjectUri(objectsRoot, sha1) {
|
|
313
|
+
return new URL(`${sha1.slice(0, 2)}/${sha1}`, objectsRoot);
|
|
148
314
|
}
|
|
149
315
|
async add() {
|
|
150
316
|
throw new Error('Method not implemented.');
|
package/lib/common/util.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export declare function decompressBytes(bytes: Uint8Array<ArrayBuffer>, algorith
|
|
|
128
128
|
export declare function decompressStream(stream: ReadableStream<Uint8Array<ArrayBuffer>>, algorithm: CompressionFormat): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
129
129
|
export declare function bytesToStream(bytes: Uint8Array<ArrayBuffer>): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
130
130
|
export declare function streamToBytes(stream: ReadableStream<Uint8Array<ArrayBuffer>>): Promise<Uint8Array<ArrayBuffer>>;
|
|
131
|
+
export declare function sleep(delayMs: number): Promise<void>;
|
|
131
132
|
/**
|
|
132
133
|
* Return a read-write TARGET type if the INPUT type is read-write, and a
|
|
133
134
|
* readonly TARGET type if the INPUT type is readonly, and `never` if the INPUT
|
package/lib/common/util.js
CHANGED
|
@@ -299,6 +299,9 @@ export function bytesToStream(bytes) {
|
|
|
299
299
|
export function streamToBytes(stream) {
|
|
300
300
|
return new Response(stream).bytes();
|
|
301
301
|
}
|
|
302
|
+
export function sleep(delayMs) {
|
|
303
|
+
return new Promise(resolve => setTimeout(resolve, delayMs));
|
|
304
|
+
}
|
|
302
305
|
/**
|
|
303
306
|
* Checks if the numeric value of a number or bigint is the same. Undefined is **not** the same as
|
|
304
307
|
* 0 for this function.
|
package/lib/service/fetcher.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import type { Externals, Logger } from '../common/index.js';
|
|
2
|
-
export
|
|
2
|
+
export interface FetcherOptions {
|
|
3
|
+
retryBaseMs?: number;
|
|
4
|
+
retryMaxAttempts?: number;
|
|
5
|
+
perTryTimeoutMs?: number;
|
|
6
|
+
totalTimeoutMs?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function fetchWithCache({ web }: Externals, logger: Logger, input: RequestInfo | URL, init?: RequestInit, options?: FetcherOptions): Promise<Response>;
|
|
9
|
+
export declare function isStaleFetcherResponse(response: Response): boolean;
|
|
3
10
|
//# sourceMappingURL=fetcher.d.ts.map
|
package/lib/service/fetcher.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { Dev } from '../common/index.js';
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
import { Dev, sleep } from '../common/index.js';
|
|
2
|
+
const FETCH_RETRY_BASE_MS = 1_000;
|
|
3
|
+
const FETCH_RETRY_MAX_ATTEMPTS = 3;
|
|
4
|
+
const FETCH_PER_TRY_TIMEOUT_MS = 10_000;
|
|
5
|
+
const FETCH_TOTAL_TIMEOUT_MS = 15_000;
|
|
6
|
+
const STALE_HEADER = 'spyglassmc-is-stale';
|
|
7
|
+
export async function fetchWithCache({ web }, logger, input, init, options) {
|
|
4
8
|
const cache = await web.getCache();
|
|
5
9
|
const request = new Request(input, init);
|
|
6
10
|
const cachedResponse = await cache.match(request);
|
|
7
|
-
const cachedEtag = cachedResponse?.headers.get('
|
|
11
|
+
const cachedEtag = cachedResponse?.headers.get('etag');
|
|
12
|
+
const cachedLastModified = cachedResponse?.headers.get('last-modified');
|
|
8
13
|
if (cachedEtag) {
|
|
9
|
-
request.headers.set('
|
|
14
|
+
request.headers.set('if-none-match', cachedEtag);
|
|
10
15
|
}
|
|
11
|
-
|
|
16
|
+
else if (cachedLastModified) {
|
|
17
|
+
request.headers.set('if-modified-since', cachedLastModified);
|
|
18
|
+
}
|
|
19
|
+
request.headers.set('user-agent', 'SpyglassMC (+https://spyglassmc.com)');
|
|
12
20
|
try {
|
|
13
|
-
const response = await
|
|
21
|
+
const response = await fetchWithRetries(request, options);
|
|
14
22
|
if (response.status === 304) {
|
|
15
23
|
Dev.assertDefined(cachedResponse);
|
|
16
24
|
logger.info(`[fetchWithCache] reusing cache for ${request.url}`);
|
|
@@ -19,7 +27,7 @@ export async function fetchWithCache({ web }, logger, input, init) {
|
|
|
19
27
|
else if (!response.ok) {
|
|
20
28
|
let message = response.statusText;
|
|
21
29
|
try {
|
|
22
|
-
message =
|
|
30
|
+
message = await response.text();
|
|
23
31
|
}
|
|
24
32
|
catch { }
|
|
25
33
|
throw new TypeError(`${response.status} ${message}`);
|
|
@@ -32,6 +40,12 @@ export async function fetchWithCache({ web }, logger, input, init) {
|
|
|
32
40
|
catch (e) {
|
|
33
41
|
logger.warn('[fetchWithCache] put cache', e);
|
|
34
42
|
}
|
|
43
|
+
try {
|
|
44
|
+
await cachedResponse?.body?.cancel();
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
logger.warn('[fetchWithCache] failed cancelling cachedResponse body stream', e);
|
|
48
|
+
}
|
|
35
49
|
return response;
|
|
36
50
|
}
|
|
37
51
|
}
|
|
@@ -39,10 +53,49 @@ export async function fetchWithCache({ web }, logger, input, init) {
|
|
|
39
53
|
logger.warn('[fetchWithCache] fetch', e);
|
|
40
54
|
if (cachedResponse) {
|
|
41
55
|
logger.info(`[fetchWithCache] falling back to cache for ${request.url}`);
|
|
42
|
-
|
|
56
|
+
// Set the stale header when fallback is used
|
|
57
|
+
const newHeaders = new Headers(cachedResponse.headers);
|
|
58
|
+
newHeaders.set(STALE_HEADER, '1');
|
|
59
|
+
return new Response(cachedResponse.body, {
|
|
60
|
+
status: cachedResponse.status,
|
|
61
|
+
statusText: cachedResponse.statusText,
|
|
62
|
+
headers: newHeaders,
|
|
63
|
+
});
|
|
43
64
|
}
|
|
44
65
|
throw e;
|
|
45
66
|
}
|
|
46
67
|
}
|
|
68
|
+
export function isStaleFetcherResponse(response) {
|
|
69
|
+
return response.headers.has(STALE_HEADER);
|
|
70
|
+
}
|
|
71
|
+
async function fetchWithRetries(request, { perTryTimeoutMs = FETCH_PER_TRY_TIMEOUT_MS, retryBaseMs = FETCH_RETRY_BASE_MS, retryMaxAttempts = FETCH_RETRY_MAX_ATTEMPTS, totalTimeoutMs = FETCH_TOTAL_TIMEOUT_MS, } = {}) {
|
|
72
|
+
let lastResult;
|
|
73
|
+
const totalSignal = AbortSignal.timeout(totalTimeoutMs);
|
|
74
|
+
Dev.assertTrue(retryMaxAttempts > 0, 'Number of attempts must be greater than 0');
|
|
75
|
+
for (let i = 0; i < retryMaxAttempts; i++) {
|
|
76
|
+
const isLastAttempt = i === retryMaxAttempts - 1;
|
|
77
|
+
try {
|
|
78
|
+
lastResult = await fetch(request.clone(), {
|
|
79
|
+
signal: AbortSignal.any([
|
|
80
|
+
totalSignal,
|
|
81
|
+
AbortSignal.timeout(perTryTimeoutMs),
|
|
82
|
+
]),
|
|
83
|
+
});
|
|
84
|
+
if (lastResult.status < 500) {
|
|
85
|
+
return lastResult;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
lastResult = e;
|
|
90
|
+
}
|
|
91
|
+
if (!isLastAttempt) {
|
|
92
|
+
await sleep(Math.round(Math.random() * (2 ** i) * retryBaseMs));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (lastResult instanceof Response) {
|
|
96
|
+
return lastResult;
|
|
97
|
+
}
|
|
98
|
+
throw lastResult;
|
|
99
|
+
}
|
|
47
100
|
// Fetchr? I hardly know her: https://github.com/NeunEinser/bingo
|
|
48
101
|
//# sourceMappingURL=fetcher.js.map
|
package/lib/symbol/Symbol.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import type { RangeLike } from '../source/index.js';
|
|
|
4
4
|
import { PositionRange, Range } from '../source/index.js';
|
|
5
5
|
export declare const McdocCategories: readonly ["mcdoc", "mcdoc/dispatcher"];
|
|
6
6
|
export type McdocCategory = (typeof McdocCategories)[number];
|
|
7
|
-
export declare const RegistryCategories: readonly ["activity", "armor_material", "attribute", "attribute_type", "block", "block_entity_type", "block_predicate_type", "block_type", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_predicate_type", "data_component_type", "debug_subscription", "decorated_pot_pattern", "decorated_pot_patterns", "dialog_action_type", "dialog_body_type", "dialog_type", "enchantment_effect_component_type", "enchantment_entity_effect_type", "enchantment_level_based_value_type", "enchantment_location_based_effect_type", "enchantment_provider_type", "enchantment_value_effect_type", "entity_sub_predicate_type", "entity_type", "environment_attribute", "float_provider_type", "fluid", "game_event", "game_rule", "height_provider_type", "incoming_rpc_methods", "input_control_type", "instrument", "int_provider_type", "item", "item_sub_predicate_type", "loot_condition_type", "loot_function_type", "loot_nbt_provider_type", "loot_number_provider_type", "loot_pool_entry_type", "loot_score_provider_type", "map_decoration_type", "memory_module_type", "menu", "mob_effect", "motive", "number_format_type", "outgoing_rpc_methods", "particle_type", "permission_check_type", "permission_type", "point_of_interest_type", "pos_rule_test", "position_source_type", "potion", "recipe_book_category", "recipe_display", "recipe_serializer", "recipe_type", "rule_block_entity_modifier", "rule_test", "schedule", "sensor_type", "slot_display", "slot_source_type", "sound_event", "spawn_condition_type", "stat_type", "test_environment_definition_type", "test_function", "test_instance_type", "trigger_type", "ticket_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_rule", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
7
|
+
export declare const RegistryCategories: readonly ["activity", "armor_material", "attribute", "attribute_type", "block", "block_entity_type", "block_predicate_type", "block_type", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_predicate_type", "data_component_type", "debug_subscription", "decorated_pot_pattern", "decorated_pot_patterns", "dialog_action_type", "dialog_body_type", "dialog_type", "enchantment_effect_component_type", "enchantment_entity_effect_type", "enchantment_level_based_value_type", "enchantment_location_based_effect_type", "enchantment_provider_type", "enchantment_value_effect_type", "entity_sub_predicate_type", "entity_type", "environment_attribute", "float_provider_type", "fluid", "game_event", "game_rule", "height_provider_type", "incoming_rpc_methods", "input_control_type", "instrument", "int_provider_type", "item", "item_sub_predicate_type", "loot_condition_type", "loot_function_type", "loot_nbt_provider_type", "loot_number_provider_type", "loot_pool_entry_type", "loot_score_provider_type", "map_decoration_type", "memory_module_type", "menu", "mob_effect", "motive", "number_format_type", "outgoing_rpc_methods", "particle_type", "permission_check_type", "permission_type", "point_of_interest_type", "pos_rule_test", "position_source_type", "potion", "recipe_book_category", "recipe_display", "recipe_serializer", "recipe_type", "rule_block_entity_modifier", "rule_test", "schedule", "sensor_type", "slot_display", "slot_source_type", "sound_event", "spawn_condition_type", "stat_type", "test_environment_definition_type", "test_function", "test_instance_type", "trigger_type", "ticket_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
8
8
|
export type RegistryCategory = (typeof RegistryCategories)[number];
|
|
9
|
-
export declare const NormalFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant"];
|
|
9
|
+
export declare const NormalFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant"];
|
|
10
10
|
export type NormalFileCategory = (typeof NormalFileCategories)[number];
|
|
11
|
-
export declare const WorldgenFileCategories: readonly ["worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/flat_level_generator_preset", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
11
|
+
export declare const WorldgenFileCategories: readonly ["worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
12
12
|
export type WorldgenFileCategory = (typeof WorldgenFileCategories)[number];
|
|
13
|
-
export declare const TaggableResourceLocationCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", "activity", "armor_material", "attribute", "attribute_type", "block", "block_entity_type", "block_predicate_type", "block_type", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_predicate_type", "data_component_type", "debug_subscription", "decorated_pot_pattern", "decorated_pot_patterns", "dialog_action_type", "dialog_body_type", "dialog_type", "enchantment_effect_component_type", "enchantment_entity_effect_type", "enchantment_level_based_value_type", "enchantment_location_based_effect_type", "enchantment_provider_type", "enchantment_value_effect_type", "entity_sub_predicate_type", "entity_type", "environment_attribute", "float_provider_type", "fluid", "game_event", "game_rule", "height_provider_type", "incoming_rpc_methods", "input_control_type", "instrument", "int_provider_type", "item", "item_sub_predicate_type", "loot_condition_type", "loot_function_type", "loot_nbt_provider_type", "loot_number_provider_type", "loot_pool_entry_type", "loot_score_provider_type", "map_decoration_type", "memory_module_type", "menu", "mob_effect", "motive", "number_format_type", "outgoing_rpc_methods", "particle_type", "permission_check_type", "permission_type", "point_of_interest_type", "pos_rule_test", "position_source_type", "potion", "recipe_book_category", "recipe_display", "recipe_serializer", "recipe_type", "rule_block_entity_modifier", "rule_test", "schedule", "sensor_type", "slot_display", "slot_source_type", "sound_event", "spawn_condition_type", "stat_type", "test_environment_definition_type", "test_function", "test_instance_type", "trigger_type", "ticket_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_rule", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type", "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/flat_level_generator_preset", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
13
|
+
export declare const TaggableResourceLocationCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", "activity", "armor_material", "attribute", "attribute_type", "block", "block_entity_type", "block_predicate_type", "block_type", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_predicate_type", "data_component_type", "debug_subscription", "decorated_pot_pattern", "decorated_pot_patterns", "dialog_action_type", "dialog_body_type", "dialog_type", "enchantment_effect_component_type", "enchantment_entity_effect_type", "enchantment_level_based_value_type", "enchantment_location_based_effect_type", "enchantment_provider_type", "enchantment_value_effect_type", "entity_sub_predicate_type", "entity_type", "environment_attribute", "float_provider_type", "fluid", "game_event", "game_rule", "height_provider_type", "incoming_rpc_methods", "input_control_type", "instrument", "int_provider_type", "item", "item_sub_predicate_type", "loot_condition_type", "loot_function_type", "loot_nbt_provider_type", "loot_number_provider_type", "loot_pool_entry_type", "loot_score_provider_type", "map_decoration_type", "memory_module_type", "menu", "mob_effect", "motive", "number_format_type", "outgoing_rpc_methods", "particle_type", "permission_check_type", "permission_type", "point_of_interest_type", "pos_rule_test", "position_source_type", "potion", "recipe_book_category", "recipe_display", "recipe_serializer", "recipe_type", "rule_block_entity_modifier", "rule_test", "schedule", "sensor_type", "slot_display", "slot_source_type", "sound_event", "spawn_condition_type", "stat_type", "test_environment_definition_type", "test_function", "test_instance_type", "trigger_type", "ticket_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type", "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
14
14
|
export type TaggableResourceLocationCategory = (typeof TaggableResourceLocationCategories)[number];
|
|
15
15
|
export declare namespace TaggableResourceLocationCategory {
|
|
16
16
|
function is(category: string): category is TaggableResourceLocationCategory;
|
|
17
17
|
}
|
|
18
|
-
export declare const TagFileCategories: readonly ("tag/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")[];
|
|
18
|
+
export declare const TagFileCategories: readonly ("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[];
|
|
19
19
|
export type TagFileCategory = (typeof TagFileCategories)[number];
|
|
20
|
-
export declare const DataFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/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"];
|
|
20
|
+
export declare const DataFileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset"];
|
|
21
21
|
export type DataFileCategory = (typeof DataFileCategories)[number];
|
|
22
22
|
export declare const DataMiscCategories: readonly ["attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch"];
|
|
23
23
|
export type DataMiscCategory = (typeof DataMiscCategories)[number];
|
|
24
|
-
export declare const DatapackCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/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"];
|
|
24
|
+
export declare const DatapackCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch"];
|
|
25
25
|
export type DatapackCategory = (typeof DatapackCategories)[number];
|
|
26
26
|
export declare const AssetsFileCategories: readonly ["atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style"];
|
|
27
27
|
export type AssetsFileCategory = (typeof AssetsFileCategories)[number];
|
|
@@ -29,11 +29,11 @@ export declare const AssetsMiscCategories: readonly ["texture_slot", "shader_tar
|
|
|
29
29
|
export type AssetsMiscCategory = (typeof AssetsMiscCategories)[number];
|
|
30
30
|
export declare const ResourcepackCategories: readonly ["texture_slot", "shader_target", "translation_key", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style"];
|
|
31
31
|
export type ResourcepackCategory = (typeof ResourcepackCategories)[number];
|
|
32
|
-
export declare const FileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/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"];
|
|
32
|
+
export declare const FileCategories: readonly ["advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style"];
|
|
33
33
|
export type FileCategory = (typeof FileCategories)[number];
|
|
34
|
-
export declare const AllCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/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"];
|
|
34
|
+
export declare const AllCategories: readonly ["attribute_modifier_uuid", "objective", "player_uuid", "score_holder", "tag", "team", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch", "texture_slot", "shader_target", "translation_key", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style", "mcdoc", "mcdoc/dispatcher", "activity", "armor_material", "attribute", "attribute_type", "block", "block_entity_type", "block_predicate_type", "block_type", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_predicate_type", "data_component_type", "debug_subscription", "decorated_pot_pattern", "decorated_pot_patterns", "dialog_action_type", "dialog_body_type", "dialog_type", "enchantment_effect_component_type", "enchantment_entity_effect_type", "enchantment_level_based_value_type", "enchantment_location_based_effect_type", "enchantment_provider_type", "enchantment_value_effect_type", "entity_sub_predicate_type", "entity_type", "environment_attribute", "float_provider_type", "fluid", "game_event", "game_rule", "height_provider_type", "incoming_rpc_methods", "input_control_type", "instrument", "int_provider_type", "item", "item_sub_predicate_type", "loot_condition_type", "loot_function_type", "loot_nbt_provider_type", "loot_number_provider_type", "loot_pool_entry_type", "loot_score_provider_type", "map_decoration_type", "memory_module_type", "menu", "mob_effect", "motive", "number_format_type", "outgoing_rpc_methods", "particle_type", "permission_check_type", "permission_type", "point_of_interest_type", "pos_rule_test", "position_source_type", "potion", "recipe_book_category", "recipe_display", "recipe_serializer", "recipe_type", "rule_block_entity_modifier", "rule_test", "schedule", "sensor_type", "slot_display", "slot_source_type", "sound_event", "spawn_condition_type", "stat_type", "test_environment_definition_type", "test_function", "test_instance_type", "trigger_type", "ticket_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
35
35
|
export type AllCategory = (typeof AllCategories)[number];
|
|
36
|
-
export declare const ResourceLocationCategories: readonly ["mcdoc/dispatcher", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch", "texture_slot", "shader_target", "translation_key", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/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"];
|
|
36
|
+
export declare const ResourceLocationCategories: readonly ["mcdoc/dispatcher", "attribute_modifier", "bossbar", "jigsaw_block_name", "random_sequence", "storage", "stopwatch", "texture_slot", "shader_target", "translation_key", "advancement", "banner_pattern", "cat_variant", "chat_type", "chicken_variant", "cow_variant", "damage_type", "decorated_pot_pattern", "dialog", "dimension", "dimension_type", "enchantment", "enchantment_provider", "frog_variant", "function", "instrument", "item_modifier", "jukebox_song", "loot_table", "painting_variant", "pig_variant", "predicate", "recipe", "slot_source", "structure", "sulfur_cube_archetype", "test_environment", "test_instance", "timeline", "trade_set", "trial_spawner", "trim_material", "trim_pattern", "villager_trade", "wolf_sound_variant", "wolf_variant", "world_clock", "zombie_nautilus_variant", ...("tag/activity" | "tag/advancement" | "tag/armor_material" | "tag/attribute" | "tag/attribute_type" | "tag/banner_pattern" | "tag/block" | "tag/block_entity_type" | "tag/block_predicate_type" | "tag/block_type" | "tag/cat_variant" | "tag/chat_type" | "tag/chicken_variant" | "tag/chunk_status" | "tag/command_argument_type" | "tag/consume_effect_type" | "tag/cow_variant" | "tag/creative_mode_tab" | "tag/custom_stat" | "tag/damage_type" | "tag/data_component_predicate_type" | "tag/data_component_type" | "tag/debug_subscription" | "tag/decorated_pot_pattern" | "tag/decorated_pot_patterns" | "tag/dialog" | "tag/dialog_action_type" | "tag/dialog_body_type" | "tag/dialog_type" | "tag/dimension" | "tag/dimension_type" | "tag/enchantment" | "tag/enchantment_effect_component_type" | "tag/enchantment_entity_effect_type" | "tag/enchantment_level_based_value_type" | "tag/enchantment_location_based_effect_type" | "tag/enchantment_provider" | "tag/enchantment_provider_type" | "tag/enchantment_value_effect_type" | "tag/entity_sub_predicate_type" | "tag/entity_type" | "tag/environment_attribute" | "tag/float_provider_type" | "tag/fluid" | "tag/frog_variant" | "tag/function" | "tag/game_event" | "tag/game_rule" | "tag/height_provider_type" | "tag/incoming_rpc_methods" | "tag/input_control_type" | "tag/instrument" | "tag/int_provider_type" | "tag/item" | "tag/item_modifier" | "tag/item_sub_predicate_type" | "tag/jukebox_song" | "tag/loot_condition_type" | "tag/loot_function_type" | "tag/loot_nbt_provider_type" | "tag/loot_number_provider_type" | "tag/loot_pool_entry_type" | "tag/loot_score_provider_type" | "tag/loot_table" | "tag/map_decoration_type" | "tag/memory_module_type" | "tag/menu" | "tag/mob_effect" | "tag/motive" | "tag/number_format_type" | "tag/outgoing_rpc_methods" | "tag/painting_variant" | "tag/particle_type" | "tag/permission_check_type" | "tag/permission_type" | "tag/pig_variant" | "tag/point_of_interest_type" | "tag/pos_rule_test" | "tag/position_source_type" | "tag/potion" | "tag/predicate" | "tag/recipe" | "tag/recipe_book_category" | "tag/recipe_display" | "tag/recipe_serializer" | "tag/recipe_type" | "tag/rule_block_entity_modifier" | "tag/rule_test" | "tag/schedule" | "tag/sensor_type" | "tag/slot_display" | "tag/slot_source" | "tag/slot_source_type" | "tag/sound_event" | "tag/spawn_condition_type" | "tag/stat_type" | "tag/structure" | "tag/sulfur_cube_archetype" | "tag/test_environment" | "tag/test_environment_definition_type" | "tag/test_function" | "tag/test_instance" | "tag/test_instance_type" | "tag/ticket_type" | "tag/timeline" | "tag/trade_set" | "tag/trial_spawner" | "tag/trigger_type" | "tag/trim_material" | "tag/trim_pattern" | "tag/villager_profession" | "tag/villager_trade" | "tag/villager_type" | "tag/wolf_sound_variant" | "tag/wolf_variant" | "tag/world_clock" | "tag/worldgen/biome" | "tag/worldgen/biome_source" | "tag/worldgen/block_placer_type" | "tag/worldgen/block_state_provider_type" | "tag/worldgen/carver" | "tag/worldgen/chunk_generator" | "tag/worldgen/configured_carver" | "tag/worldgen/configured_feature" | "tag/worldgen/configured_structure_feature" | "tag/worldgen/configured_surface_builder" | "tag/worldgen/decorator" | "tag/worldgen/density_function" | "tag/worldgen/density_function_type" | "tag/worldgen/feature" | "tag/worldgen/feature_size_type" | "tag/worldgen/feature_type" | "tag/worldgen/flat_level_generator_preset" | "tag/worldgen/foliage_placer_type" | "tag/worldgen/material_condition" | "tag/worldgen/material_condition_type" | "tag/worldgen/material_rule" | "tag/worldgen/material_rule_type" | "tag/worldgen/multi_noise_biome_source_parameter_list" | "tag/worldgen/noise" | "tag/worldgen/noise_settings" | "tag/worldgen/placed_feature" | "tag/worldgen/placement_modifier_type" | "tag/worldgen/pool_alias_binding" | "tag/worldgen/processor_list" | "tag/worldgen/root_placer_type" | "tag/worldgen/structure" | "tag/worldgen/structure_feature" | "tag/worldgen/structure_piece" | "tag/worldgen/structure_placement" | "tag/worldgen/structure_pool_element" | "tag/worldgen/structure_processor" | "tag/worldgen/structure_set" | "tag/worldgen/structure_type" | "tag/worldgen/surface_builder" | "tag/worldgen/template_pool" | "tag/worldgen/tree_decorator_type" | "tag/worldgen/trunk_placer_type" | "tag/worldgen/world_preset" | "tag/zombie_nautilus_variant")[], "worldgen/biome", "worldgen/configured_carver", "worldgen/configured_feature", "worldgen/configured_structure_feature", "worldgen/configured_surface_builder", "worldgen/density_function", "worldgen/feature", "worldgen/flat_level_generator_preset", "worldgen/material_condition", "worldgen/material_rule", "worldgen/multi_noise_biome_source_parameter_list", "worldgen/noise", "worldgen/noise_settings", "worldgen/placed_feature", "worldgen/processor_list", "worldgen/structure", "worldgen/structure_set", "worldgen/template_pool", "worldgen/world_preset", "atlas", "block_definition", "equipment", "font", "font/ttf", "font/otf", "font/unihex", "gpu_warnlist", "item_definition", "lang", "lang/deprecated", "model", "particle", "post_effect", "regional_compliancies", "shader", "shader/fragment", "shader/vertex", "sound", "sounds", "texture", "texture_meta", "waypoint_style", "activity", "armor_material", "attribute", "attribute_type", "block", "block_entity_type", "block_predicate_type", "block_type", "chunk_status", "command_argument_type", "consume_effect_type", "creative_mode_tab", "custom_stat", "data_component_predicate_type", "data_component_type", "debug_subscription", "decorated_pot_pattern", "decorated_pot_patterns", "dialog_action_type", "dialog_body_type", "dialog_type", "enchantment_effect_component_type", "enchantment_entity_effect_type", "enchantment_level_based_value_type", "enchantment_location_based_effect_type", "enchantment_provider_type", "enchantment_value_effect_type", "entity_sub_predicate_type", "entity_type", "environment_attribute", "float_provider_type", "fluid", "game_event", "game_rule", "height_provider_type", "incoming_rpc_methods", "input_control_type", "instrument", "int_provider_type", "item", "item_sub_predicate_type", "loot_condition_type", "loot_function_type", "loot_nbt_provider_type", "loot_number_provider_type", "loot_pool_entry_type", "loot_score_provider_type", "map_decoration_type", "memory_module_type", "menu", "mob_effect", "motive", "number_format_type", "outgoing_rpc_methods", "particle_type", "permission_check_type", "permission_type", "point_of_interest_type", "pos_rule_test", "position_source_type", "potion", "recipe_book_category", "recipe_display", "recipe_serializer", "recipe_type", "rule_block_entity_modifier", "rule_test", "schedule", "sensor_type", "slot_display", "slot_source_type", "sound_event", "spawn_condition_type", "stat_type", "test_environment_definition_type", "test_function", "test_instance_type", "trigger_type", "ticket_type", "villager_profession", "villager_type", "worldgen/biome_source", "worldgen/block_placer_type", "worldgen/block_state_provider_type", "worldgen/carver", "worldgen/chunk_generator", "worldgen/decorator", "worldgen/density_function_type", "worldgen/feature", "worldgen/feature_size_type", "worldgen/feature_type", "worldgen/foliage_placer_type", "worldgen/material_condition", "worldgen/material_condition_type", "worldgen/material_rule", "worldgen/material_rule_type", "worldgen/placement_modifier_type", "worldgen/pool_alias_binding", "worldgen/root_placer_type", "worldgen/structure_feature", "worldgen/structure_piece", "worldgen/structure_placement", "worldgen/structure_pool_element", "worldgen/structure_processor", "worldgen/structure_type", "worldgen/surface_builder", "worldgen/tree_decorator_type", "worldgen/trunk_placer_type"];
|
|
37
37
|
export type ResourceLocationCategory = (typeof ResourceLocationCategories)[number];
|
|
38
38
|
export declare namespace ResourceLocationCategory {
|
|
39
39
|
function is(category: string): category is ResourceLocationCategory;
|
package/lib/symbol/Symbol.js
CHANGED
|
@@ -24,7 +24,7 @@ export const RegistryCategories = Object.freeze([
|
|
|
24
24
|
'data_component_predicate_type',
|
|
25
25
|
'data_component_type',
|
|
26
26
|
'debug_subscription',
|
|
27
|
-
'decorated_pot_pattern',
|
|
27
|
+
'decorated_pot_pattern', // Removed as registry
|
|
28
28
|
'decorated_pot_patterns', // Removed
|
|
29
29
|
'dialog_action_type',
|
|
30
30
|
'dialog_body_type',
|
|
@@ -96,11 +96,14 @@ export const RegistryCategories = Object.freeze([
|
|
|
96
96
|
'worldgen/chunk_generator',
|
|
97
97
|
'worldgen/decorator', // Removed
|
|
98
98
|
'worldgen/density_function_type',
|
|
99
|
-
'worldgen/feature',
|
|
99
|
+
'worldgen/feature', // Removed as registry
|
|
100
100
|
'worldgen/feature_size_type',
|
|
101
|
+
'worldgen/feature_type',
|
|
101
102
|
'worldgen/foliage_placer_type',
|
|
102
|
-
'worldgen/material_condition',
|
|
103
|
-
'worldgen/
|
|
103
|
+
'worldgen/material_condition', // Removed as registry
|
|
104
|
+
'worldgen/material_condition_type',
|
|
105
|
+
'worldgen/material_rule', // Removed as registry
|
|
106
|
+
'worldgen/material_rule_type',
|
|
104
107
|
'worldgen/placement_modifier_type',
|
|
105
108
|
'worldgen/pool_alias_binding',
|
|
106
109
|
'worldgen/root_placer_type',
|
|
@@ -124,6 +127,7 @@ export const NormalFileCategories = Object.freeze([
|
|
|
124
127
|
'chicken_variant',
|
|
125
128
|
'cow_variant',
|
|
126
129
|
'damage_type',
|
|
130
|
+
'decorated_pot_pattern',
|
|
127
131
|
'dialog',
|
|
128
132
|
'dimension',
|
|
129
133
|
'dimension_type',
|
|
@@ -139,6 +143,7 @@ export const NormalFileCategories = Object.freeze([
|
|
|
139
143
|
'pig_variant',
|
|
140
144
|
'predicate',
|
|
141
145
|
'recipe',
|
|
146
|
+
'slot_source',
|
|
142
147
|
'structure',
|
|
143
148
|
'sulfur_cube_archetype',
|
|
144
149
|
'test_environment',
|
|
@@ -157,11 +162,14 @@ export const NormalFileCategories = Object.freeze([
|
|
|
157
162
|
export const WorldgenFileCategories = Object.freeze([
|
|
158
163
|
'worldgen/biome',
|
|
159
164
|
'worldgen/configured_carver',
|
|
160
|
-
'worldgen/configured_feature',
|
|
161
|
-
'worldgen/configured_structure_feature',
|
|
162
|
-
'worldgen/configured_surface_builder',
|
|
165
|
+
'worldgen/configured_feature', // Removed
|
|
166
|
+
'worldgen/configured_structure_feature', // Removed
|
|
167
|
+
'worldgen/configured_surface_builder', // Removed
|
|
163
168
|
'worldgen/density_function',
|
|
169
|
+
'worldgen/feature',
|
|
164
170
|
'worldgen/flat_level_generator_preset',
|
|
171
|
+
'worldgen/material_condition',
|
|
172
|
+
'worldgen/material_rule',
|
|
165
173
|
'worldgen/multi_noise_biome_source_parameter_list',
|
|
166
174
|
'worldgen/noise',
|
|
167
175
|
'worldgen/noise_settings',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spyglassmc/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.48",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"rfdc": "^1.3.0",
|
|
23
23
|
"vscode-languageserver-textdocument": "^1.0.4",
|
|
24
24
|
"whatwg-url": "^14.0.0",
|
|
25
|
-
"@spyglassmc/locales": "0.3.
|
|
25
|
+
"@spyglassmc/locales": "0.3.25"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/decompress": "^4.2.3",
|