@minecraft/server-editor 0.1.0-beta.1.21.100-preview.20 → 0.1.0-beta.1.21.100-preview.21
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/index.d.ts +86 -18
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1089,6 +1089,13 @@ export declare enum StatusBarAlignment {
|
|
|
1089
1089
|
Left = 1,
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
|
+
export enum StructureSource {
|
|
1093
|
+
BehaviorPack = 0,
|
|
1094
|
+
EditorProject = 1,
|
|
1095
|
+
File = 2,
|
|
1096
|
+
Level = 3,
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1092
1099
|
export enum ThemeSettingsColorKey {
|
|
1093
1100
|
Caret = 'Caret',
|
|
1094
1101
|
Confirm1 = 'Confirm1',
|
|
@@ -2262,8 +2269,75 @@ export class EditorConstants {
|
|
|
2262
2269
|
readonly minStructureOffset: minecraftserver.Vector3;
|
|
2263
2270
|
}
|
|
2264
2271
|
|
|
2272
|
+
export class EditorStructure {
|
|
2273
|
+
private constructor();
|
|
2274
|
+
readonly id: string;
|
|
2275
|
+
readonly isValid: boolean;
|
|
2276
|
+
/**
|
|
2277
|
+
* @throws This property can throw when used.
|
|
2278
|
+
*
|
|
2279
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2280
|
+
*/
|
|
2281
|
+
readonly size: minecraftserver.Vector3;
|
|
2282
|
+
/**
|
|
2283
|
+
* @throws This function can throw errors.
|
|
2284
|
+
*
|
|
2285
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
2286
|
+
*
|
|
2287
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2288
|
+
*/
|
|
2289
|
+
getBlockPermutation(location: minecraftserver.Vector3): minecraftserver.BlockPermutation | undefined;
|
|
2290
|
+
/**
|
|
2291
|
+
* @throws This function can throw errors.
|
|
2292
|
+
*
|
|
2293
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
2294
|
+
*
|
|
2295
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2296
|
+
*/
|
|
2297
|
+
getIsWaterlogged(location: minecraftserver.Vector3): boolean;
|
|
2298
|
+
/**
|
|
2299
|
+
* @throws This function can throw errors.
|
|
2300
|
+
*
|
|
2301
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2302
|
+
*/
|
|
2303
|
+
getTags(): string[];
|
|
2304
|
+
/**
|
|
2305
|
+
* @remarks
|
|
2306
|
+
* This function can't be called in read-only mode.
|
|
2307
|
+
*
|
|
2308
|
+
* @param waterlogged
|
|
2309
|
+
* Defaults to: false
|
|
2310
|
+
* @throws This function can throw errors.
|
|
2311
|
+
*
|
|
2312
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
2313
|
+
*
|
|
2314
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2315
|
+
*/
|
|
2316
|
+
setBlockPermutation(
|
|
2317
|
+
location: minecraftserver.Vector3,
|
|
2318
|
+
blockPermutation: minecraftserver.BlockPermutation,
|
|
2319
|
+
waterlogged?: boolean,
|
|
2320
|
+
): void;
|
|
2321
|
+
/**
|
|
2322
|
+
* @remarks
|
|
2323
|
+
* This function can't be called in read-only mode.
|
|
2324
|
+
*
|
|
2325
|
+
* @throws This function can throw errors.
|
|
2326
|
+
*
|
|
2327
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2328
|
+
*/
|
|
2329
|
+
setTags(tags: string[]): void;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2265
2332
|
export class EditorStructureManager {
|
|
2266
2333
|
private constructor();
|
|
2334
|
+
/**
|
|
2335
|
+
* @remarks
|
|
2336
|
+
* This function can't be called in read-only mode.
|
|
2337
|
+
*
|
|
2338
|
+
* @throws This function can throw errors.
|
|
2339
|
+
*/
|
|
2340
|
+
createEmpty(id: string, size: minecraftserver.Vector3): EditorStructure;
|
|
2267
2341
|
/**
|
|
2268
2342
|
* @remarks
|
|
2269
2343
|
* This function can't be called in read-only mode.
|
|
@@ -2277,21 +2351,21 @@ export class EditorStructureManager {
|
|
|
2277
2351
|
*
|
|
2278
2352
|
* @throws This function can throw errors.
|
|
2279
2353
|
*/
|
|
2280
|
-
|
|
2354
|
+
deleteStructure(id: string): void;
|
|
2281
2355
|
/**
|
|
2282
2356
|
* @remarks
|
|
2283
2357
|
* This function can't be called in read-only mode.
|
|
2284
2358
|
*
|
|
2285
2359
|
* @throws This function can throw errors.
|
|
2286
2360
|
*/
|
|
2287
|
-
|
|
2361
|
+
getExistingTags(): string[];
|
|
2288
2362
|
/**
|
|
2289
2363
|
* @remarks
|
|
2290
2364
|
* This function can't be called in read-only mode.
|
|
2291
2365
|
*
|
|
2292
2366
|
* @throws This function can throw errors.
|
|
2293
2367
|
*/
|
|
2294
|
-
|
|
2368
|
+
getOrCreateStructure(id: string): EditorStructure;
|
|
2295
2369
|
/**
|
|
2296
2370
|
* @remarks
|
|
2297
2371
|
* This function can't be called in read-only mode.
|
|
@@ -4459,16 +4533,10 @@ export interface CursorRay {
|
|
|
4459
4533
|
start: minecraftserver.Vector3;
|
|
4460
4534
|
}
|
|
4461
4535
|
|
|
4462
|
-
export interface EditorStructure {
|
|
4463
|
-
storageLocation: string;
|
|
4464
|
-
structure: minecraftserver.Structure;
|
|
4465
|
-
tags: string[];
|
|
4466
|
-
}
|
|
4467
|
-
|
|
4468
4536
|
export interface EditorStructureSearchOptions {
|
|
4469
|
-
|
|
4537
|
+
displayName?: string;
|
|
4470
4538
|
idPattern?: string;
|
|
4471
|
-
|
|
4539
|
+
includeSources?: StructureSource[];
|
|
4472
4540
|
includeTags?: string[];
|
|
4473
4541
|
}
|
|
4474
4542
|
|
|
@@ -4878,7 +4946,7 @@ export interface IBoolPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
4878
4946
|
* Tooltip description of the property item
|
|
4879
4947
|
*
|
|
4880
4948
|
*/
|
|
4881
|
-
tooltip?:
|
|
4949
|
+
tooltip?: BasicTooltipContent;
|
|
4882
4950
|
/**
|
|
4883
4951
|
* @remarks
|
|
4884
4952
|
* Determines how we display bool as a UI element. If
|
|
@@ -4986,7 +5054,7 @@ export interface IButtonPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
4986
5054
|
* Tooltip description of the property item.
|
|
4987
5055
|
*
|
|
4988
5056
|
*/
|
|
4989
|
-
tooltip?:
|
|
5057
|
+
tooltip?: BasicTooltipContent;
|
|
4990
5058
|
/**
|
|
4991
5059
|
* @remarks
|
|
4992
5060
|
* The variant for the button. By default it is Primary.
|
|
@@ -5296,7 +5364,7 @@ export interface IComboBoxPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
5296
5364
|
* Tooltip description of the property item.
|
|
5297
5365
|
*
|
|
5298
5366
|
*/
|
|
5299
|
-
tooltip?:
|
|
5367
|
+
tooltip?: BasicTooltipContent;
|
|
5300
5368
|
}
|
|
5301
5369
|
|
|
5302
5370
|
/**
|
|
@@ -5492,7 +5560,7 @@ export interface IDropdownPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
5492
5560
|
* Tooltip description of the property item.
|
|
5493
5561
|
*
|
|
5494
5562
|
*/
|
|
5495
|
-
tooltip?:
|
|
5563
|
+
tooltip?: BasicTooltipContent;
|
|
5496
5564
|
}
|
|
5497
5565
|
|
|
5498
5566
|
/**
|
|
@@ -6053,7 +6121,7 @@ export interface INumberPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
6053
6121
|
* Tooltip description of the property item.
|
|
6054
6122
|
*
|
|
6055
6123
|
*/
|
|
6056
|
-
tooltip?:
|
|
6124
|
+
tooltip?: BasicTooltipContent;
|
|
6057
6125
|
/**
|
|
6058
6126
|
* @remarks
|
|
6059
6127
|
* Determines how we display bool as a UI element. If
|
|
@@ -7238,7 +7306,7 @@ export interface IToggleGroupPropertyItemOptions extends IPropertyItemOptionsBas
|
|
|
7238
7306
|
* Tooltip description of the property item.
|
|
7239
7307
|
*
|
|
7240
7308
|
*/
|
|
7241
|
-
tooltip?:
|
|
7309
|
+
tooltip?: BasicTooltipContent;
|
|
7242
7310
|
}
|
|
7243
7311
|
|
|
7244
7312
|
/**
|
|
@@ -7326,7 +7394,7 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
7326
7394
|
* Tooltip description of the property item
|
|
7327
7395
|
*
|
|
7328
7396
|
*/
|
|
7329
|
-
tooltip?:
|
|
7397
|
+
tooltip?: BasicTooltipContent;
|
|
7330
7398
|
}
|
|
7331
7399
|
|
|
7332
7400
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.100-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.100-preview.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^2.2.0-beta.1.21.100-preview.
|
|
17
|
+
"@minecraft/server": "^2.2.0-beta.1.21.100-preview.21"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|