@minecraft/server-editor 0.1.0-beta.1.21.100-preview.20 → 0.1.0-beta.1.21.100-preview.22
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 +114 -19
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -33,6 +33,11 @@ export declare enum ActionTypes {
|
|
|
33
33
|
StatefulAction = 'StatefulAction',
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export enum AudioSettingsProperty {
|
|
37
|
+
AreSoundsMuted = 'AreSoundsMuted',
|
|
38
|
+
IsMusicMuted = 'IsMusicMuted',
|
|
39
|
+
}
|
|
40
|
+
|
|
36
41
|
export enum Axis {
|
|
37
42
|
None = 0,
|
|
38
43
|
X = 1,
|
|
@@ -1089,6 +1094,13 @@ export declare enum StatusBarAlignment {
|
|
|
1089
1094
|
Left = 1,
|
|
1090
1095
|
}
|
|
1091
1096
|
|
|
1097
|
+
export enum StructureSource {
|
|
1098
|
+
BehaviorPack = 0,
|
|
1099
|
+
EditorProject = 1,
|
|
1100
|
+
File = 2,
|
|
1101
|
+
Level = 3,
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1092
1104
|
export enum ThemeSettingsColorKey {
|
|
1093
1105
|
Caret = 'Caret',
|
|
1094
1106
|
Confirm1 = 'Confirm1',
|
|
@@ -1447,6 +1459,7 @@ export type SupportedMouseActionTypes = RegisteredAction<MouseRayCastAction>;
|
|
|
1447
1459
|
export declare type TooltipContent = {
|
|
1448
1460
|
title?: LocalizedString;
|
|
1449
1461
|
description?: LocalizedString;
|
|
1462
|
+
image?: string;
|
|
1450
1463
|
};
|
|
1451
1464
|
|
|
1452
1465
|
/**
|
|
@@ -1472,6 +1485,26 @@ export declare type TooltipLink = {
|
|
|
1472
1485
|
|
|
1473
1486
|
export type UnregisterInputBindingCallback = () => void;
|
|
1474
1487
|
|
|
1488
|
+
export class AudioSettings {
|
|
1489
|
+
private constructor();
|
|
1490
|
+
get(property: AudioSettingsProperty): boolean | number | undefined;
|
|
1491
|
+
getAll(): Record<string, boolean | number>;
|
|
1492
|
+
/**
|
|
1493
|
+
* @remarks
|
|
1494
|
+
* This function can't be called in read-only mode.
|
|
1495
|
+
*
|
|
1496
|
+
* @throws This function can throw errors.
|
|
1497
|
+
*/
|
|
1498
|
+
set(property: AudioSettingsProperty, value: boolean | number): void;
|
|
1499
|
+
/**
|
|
1500
|
+
* @remarks
|
|
1501
|
+
* This function can't be called in read-only mode.
|
|
1502
|
+
*
|
|
1503
|
+
* @throws This function can throw errors.
|
|
1504
|
+
*/
|
|
1505
|
+
setAll(properties: Record<string, boolean | number>): void;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1475
1508
|
/**
|
|
1476
1509
|
* A cache for bedrock event subscriptions. Stores off a
|
|
1477
1510
|
* subscription by event key, and upon teardown unregisters all
|
|
@@ -2262,8 +2295,75 @@ export class EditorConstants {
|
|
|
2262
2295
|
readonly minStructureOffset: minecraftserver.Vector3;
|
|
2263
2296
|
}
|
|
2264
2297
|
|
|
2298
|
+
export class EditorStructure {
|
|
2299
|
+
private constructor();
|
|
2300
|
+
readonly id: string;
|
|
2301
|
+
readonly isValid: boolean;
|
|
2302
|
+
/**
|
|
2303
|
+
* @throws This property can throw when used.
|
|
2304
|
+
*
|
|
2305
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2306
|
+
*/
|
|
2307
|
+
readonly size: minecraftserver.Vector3;
|
|
2308
|
+
/**
|
|
2309
|
+
* @throws This function can throw errors.
|
|
2310
|
+
*
|
|
2311
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
2312
|
+
*
|
|
2313
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2314
|
+
*/
|
|
2315
|
+
getBlockPermutation(location: minecraftserver.Vector3): minecraftserver.BlockPermutation | undefined;
|
|
2316
|
+
/**
|
|
2317
|
+
* @throws This function can throw errors.
|
|
2318
|
+
*
|
|
2319
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
2320
|
+
*
|
|
2321
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2322
|
+
*/
|
|
2323
|
+
getIsWaterlogged(location: minecraftserver.Vector3): boolean;
|
|
2324
|
+
/**
|
|
2325
|
+
* @throws This function can throw errors.
|
|
2326
|
+
*
|
|
2327
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2328
|
+
*/
|
|
2329
|
+
getTags(): string[];
|
|
2330
|
+
/**
|
|
2331
|
+
* @remarks
|
|
2332
|
+
* This function can't be called in read-only mode.
|
|
2333
|
+
*
|
|
2334
|
+
* @param waterlogged
|
|
2335
|
+
* Defaults to: false
|
|
2336
|
+
* @throws This function can throw errors.
|
|
2337
|
+
*
|
|
2338
|
+
* {@link minecraftcommon.InvalidArgumentError}
|
|
2339
|
+
*
|
|
2340
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2341
|
+
*/
|
|
2342
|
+
setBlockPermutation(
|
|
2343
|
+
location: minecraftserver.Vector3,
|
|
2344
|
+
blockPermutation: minecraftserver.BlockPermutation,
|
|
2345
|
+
waterlogged?: boolean,
|
|
2346
|
+
): void;
|
|
2347
|
+
/**
|
|
2348
|
+
* @remarks
|
|
2349
|
+
* This function can't be called in read-only mode.
|
|
2350
|
+
*
|
|
2351
|
+
* @throws This function can throw errors.
|
|
2352
|
+
*
|
|
2353
|
+
* {@link minecraftserver.InvalidStructureError}
|
|
2354
|
+
*/
|
|
2355
|
+
setTags(tags: string[]): void;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2265
2358
|
export class EditorStructureManager {
|
|
2266
2359
|
private constructor();
|
|
2360
|
+
/**
|
|
2361
|
+
* @remarks
|
|
2362
|
+
* This function can't be called in read-only mode.
|
|
2363
|
+
*
|
|
2364
|
+
* @throws This function can throw errors.
|
|
2365
|
+
*/
|
|
2366
|
+
createEmpty(id: string, size: minecraftserver.Vector3): EditorStructure;
|
|
2267
2367
|
/**
|
|
2268
2368
|
* @remarks
|
|
2269
2369
|
* This function can't be called in read-only mode.
|
|
@@ -2277,21 +2377,21 @@ export class EditorStructureManager {
|
|
|
2277
2377
|
*
|
|
2278
2378
|
* @throws This function can throw errors.
|
|
2279
2379
|
*/
|
|
2280
|
-
|
|
2380
|
+
deleteStructure(id: string): void;
|
|
2281
2381
|
/**
|
|
2282
2382
|
* @remarks
|
|
2283
2383
|
* This function can't be called in read-only mode.
|
|
2284
2384
|
*
|
|
2285
2385
|
* @throws This function can throw errors.
|
|
2286
2386
|
*/
|
|
2287
|
-
|
|
2387
|
+
getExistingTags(): string[];
|
|
2288
2388
|
/**
|
|
2289
2389
|
* @remarks
|
|
2290
2390
|
* This function can't be called in read-only mode.
|
|
2291
2391
|
*
|
|
2292
2392
|
* @throws This function can throw errors.
|
|
2293
2393
|
*/
|
|
2294
|
-
|
|
2394
|
+
getOrCreateStructure(id: string): EditorStructure;
|
|
2295
2395
|
/**
|
|
2296
2396
|
* @remarks
|
|
2297
2397
|
* This function can't be called in read-only mode.
|
|
@@ -3056,6 +3156,7 @@ export class SelectionManager {
|
|
|
3056
3156
|
*/
|
|
3057
3157
|
export class SettingsManager {
|
|
3058
3158
|
private constructor();
|
|
3159
|
+
readonly audio: AudioSettings;
|
|
3059
3160
|
/**
|
|
3060
3161
|
* @remarks
|
|
3061
3162
|
* Manages graphics settings properties.
|
|
@@ -4459,16 +4560,10 @@ export interface CursorRay {
|
|
|
4459
4560
|
start: minecraftserver.Vector3;
|
|
4460
4561
|
}
|
|
4461
4562
|
|
|
4462
|
-
export interface EditorStructure {
|
|
4463
|
-
storageLocation: string;
|
|
4464
|
-
structure: minecraftserver.Structure;
|
|
4465
|
-
tags: string[];
|
|
4466
|
-
}
|
|
4467
|
-
|
|
4468
4563
|
export interface EditorStructureSearchOptions {
|
|
4469
|
-
|
|
4564
|
+
displayName?: string;
|
|
4470
4565
|
idPattern?: string;
|
|
4471
|
-
|
|
4566
|
+
includeSources?: StructureSource[];
|
|
4472
4567
|
includeTags?: string[];
|
|
4473
4568
|
}
|
|
4474
4569
|
|
|
@@ -4878,7 +4973,7 @@ export interface IBoolPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
4878
4973
|
* Tooltip description of the property item
|
|
4879
4974
|
*
|
|
4880
4975
|
*/
|
|
4881
|
-
tooltip?:
|
|
4976
|
+
tooltip?: BasicTooltipContent;
|
|
4882
4977
|
/**
|
|
4883
4978
|
* @remarks
|
|
4884
4979
|
* Determines how we display bool as a UI element. If
|
|
@@ -4986,7 +5081,7 @@ export interface IButtonPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
4986
5081
|
* Tooltip description of the property item.
|
|
4987
5082
|
*
|
|
4988
5083
|
*/
|
|
4989
|
-
tooltip?:
|
|
5084
|
+
tooltip?: BasicTooltipContent;
|
|
4990
5085
|
/**
|
|
4991
5086
|
* @remarks
|
|
4992
5087
|
* The variant for the button. By default it is Primary.
|
|
@@ -5296,7 +5391,7 @@ export interface IComboBoxPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
5296
5391
|
* Tooltip description of the property item.
|
|
5297
5392
|
*
|
|
5298
5393
|
*/
|
|
5299
|
-
tooltip?:
|
|
5394
|
+
tooltip?: BasicTooltipContent;
|
|
5300
5395
|
}
|
|
5301
5396
|
|
|
5302
5397
|
/**
|
|
@@ -5492,7 +5587,7 @@ export interface IDropdownPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
5492
5587
|
* Tooltip description of the property item.
|
|
5493
5588
|
*
|
|
5494
5589
|
*/
|
|
5495
|
-
tooltip?:
|
|
5590
|
+
tooltip?: BasicTooltipContent;
|
|
5496
5591
|
}
|
|
5497
5592
|
|
|
5498
5593
|
/**
|
|
@@ -6053,7 +6148,7 @@ export interface INumberPropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
6053
6148
|
* Tooltip description of the property item.
|
|
6054
6149
|
*
|
|
6055
6150
|
*/
|
|
6056
|
-
tooltip?:
|
|
6151
|
+
tooltip?: BasicTooltipContent;
|
|
6057
6152
|
/**
|
|
6058
6153
|
* @remarks
|
|
6059
6154
|
* Determines how we display bool as a UI element. If
|
|
@@ -7238,7 +7333,7 @@ export interface IToggleGroupPropertyItemOptions extends IPropertyItemOptionsBas
|
|
|
7238
7333
|
* Tooltip description of the property item.
|
|
7239
7334
|
*
|
|
7240
7335
|
*/
|
|
7241
|
-
tooltip?:
|
|
7336
|
+
tooltip?: BasicTooltipContent;
|
|
7242
7337
|
}
|
|
7243
7338
|
|
|
7244
7339
|
/**
|
|
@@ -7326,7 +7421,7 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
7326
7421
|
* Tooltip description of the property item
|
|
7327
7422
|
*
|
|
7328
7423
|
*/
|
|
7329
|
-
tooltip?:
|
|
7424
|
+
tooltip?: BasicTooltipContent;
|
|
7330
7425
|
}
|
|
7331
7426
|
|
|
7332
7427
|
/**
|
|
@@ -7381,7 +7476,7 @@ export interface ModalToolCreationParameters {
|
|
|
7381
7476
|
* Tooltip description of the tool
|
|
7382
7477
|
*
|
|
7383
7478
|
*/
|
|
7384
|
-
tooltip?:
|
|
7479
|
+
tooltip?: BasicTooltipContent;
|
|
7385
7480
|
}
|
|
7386
7481
|
|
|
7387
7482
|
export interface ProjectExportOptions {
|
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.22",
|
|
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.22"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|