@minecraft/server-editor 0.1.0-beta.1.21.20-preview.21 → 0.1.0-beta.1.21.20-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.
Files changed (2) hide show
  1. package/index.d.ts +516 -103
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -196,6 +196,11 @@ export declare enum EditorStatusBarAlignment {
196
196
  Left = 1,
197
197
  }
198
198
 
199
+ export enum EntityOperationType {
200
+ Create = 0,
201
+ Delete = 1,
202
+ }
203
+
199
204
  export enum ExportResult {
200
205
  ValidWorldExport = 0,
201
206
  LevelFetchFailed = 1,
@@ -246,97 +251,557 @@ export declare enum InputModifier {
246
251
  */
247
252
  export declare enum KeyboardKey {
248
253
  UNDEFINED = 0,
254
+ /**
255
+ * @remarks
256
+ * KeyboardEvent.DOM_VK_BACK_SPACE
257
+ *
258
+ */
249
259
  BACKSPACE = 8,
260
+ /**
261
+ * @remarks
262
+ * KeyboardEvent.DOM_VK_TAB
263
+ *
264
+ */
250
265
  TAB = 9,
266
+ /**
267
+ * @remarks
268
+ * KeyboardEvent.DOM_VK_RETURN
269
+ *
270
+ */
251
271
  ENTER = 13,
272
+ /**
273
+ * @remarks
274
+ * KeyboardEvent.DOM_VK_SHIFT
275
+ *
276
+ */
252
277
  SHIFT = 16,
278
+ /**
279
+ * @remarks
280
+ * KeyboardEvent.DOM_VK_CONTROL
281
+ *
282
+ */
253
283
  CTRL = 17,
284
+ /**
285
+ * @remarks
286
+ * KeyboardEvent.DOM_VK_ALT
287
+ *
288
+ */
254
289
  ALT = 18,
290
+ /**
291
+ * @remarks
292
+ * KeyboardEvent.DOM_VK_CAPS_LOCK
293
+ *
294
+ */
255
295
  CAPS_LOCK = 20,
296
+ /**
297
+ * @remarks
298
+ * KeyboardEvent.DOM_VK_ESCAPE
299
+ *
300
+ */
256
301
  ESCAPE = 27,
302
+ /**
303
+ * @remarks
304
+ * KeyboardEvent.DOM_VK_SPACE
305
+ *
306
+ */
257
307
  SPACE = 32,
308
+ /**
309
+ * @remarks
310
+ * KeyboardEvent.DOM_VK_PAGE_UP
311
+ *
312
+ */
258
313
  PAGE_UP = 33,
314
+ /**
315
+ * @remarks
316
+ * KeyboardEvent.DOM_VK_PAGE_DOWN
317
+ *
318
+ */
259
319
  PAGE_DOWN = 34,
320
+ /**
321
+ * @remarks
322
+ * KeyboardEvent.DOM_VK_END
323
+ *
324
+ */
260
325
  END = 35,
326
+ /**
327
+ * @remarks
328
+ * KeyboardEvent.DOM_VK_HOME
329
+ *
330
+ */
261
331
  HOME = 36,
332
+ /**
333
+ * @remarks
334
+ * KeyboardEvent.DOM_VK_LEFT
335
+ *
336
+ */
262
337
  LEFT = 37,
338
+ /**
339
+ * @remarks
340
+ * KeyboardEvent.DOM_VK_UP
341
+ *
342
+ */
263
343
  UP = 38,
344
+ /**
345
+ * @remarks
346
+ * KeyboardEvent.DOM_VK_RIGHT
347
+ *
348
+ */
264
349
  RIGHT = 39,
350
+ /**
351
+ * @remarks
352
+ * KeyboardEvent.DOM_VK_DOWN
353
+ *
354
+ */
265
355
  DOWN = 40,
356
+ /**
357
+ * @remarks
358
+ * KeyboardEvent.DOM_VK_PRINTSCREEN
359
+ *
360
+ */
266
361
  PRINT_SCREEN = 44,
362
+ /**
363
+ * @remarks
364
+ * KeyboardEvent.DOM_VK_INSERT
365
+ *
366
+ */
267
367
  INSERT = 45,
368
+ /**
369
+ * @remarks
370
+ * KeyboardEvent.DOM_VK_DELETE
371
+ *
372
+ */
268
373
  DELETE = 46,
374
+ /**
375
+ * @remarks
376
+ * KeyboardEvent.DOM_VK_0
377
+ *
378
+ */
269
379
  KEY_0 = 48,
380
+ /**
381
+ * @remarks
382
+ * KeyboardEvent.DOM_VK_1
383
+ *
384
+ */
270
385
  KEY_1 = 49,
386
+ /**
387
+ * @remarks
388
+ * KeyboardEvent.DOM_VK_2
389
+ *
390
+ */
271
391
  KEY_2 = 50,
392
+ /**
393
+ * @remarks
394
+ * KeyboardEvent.DOM_VK_3
395
+ *
396
+ */
272
397
  KEY_3 = 51,
398
+ /**
399
+ * @remarks
400
+ * KeyboardEvent.DOM_VK_4
401
+ *
402
+ */
273
403
  KEY_4 = 52,
404
+ /**
405
+ * @remarks
406
+ * KeyboardEvent.DOM_VK_5
407
+ *
408
+ */
274
409
  KEY_5 = 53,
410
+ /**
411
+ * @remarks
412
+ * KeyboardEvent.DOM_VK_6
413
+ *
414
+ */
275
415
  KEY_6 = 54,
416
+ /**
417
+ * @remarks
418
+ * KeyboardEvent.DOM_VK_7
419
+ *
420
+ */
276
421
  KEY_7 = 55,
422
+ /**
423
+ * @remarks
424
+ * KeyboardEvent.DOM_VK_8
425
+ *
426
+ */
277
427
  KEY_8 = 56,
428
+ /**
429
+ * @remarks
430
+ * KeyboardEvent.DOM_VK_9
431
+ *
432
+ */
278
433
  KEY_9 = 57,
434
+ /**
435
+ * @remarks
436
+ * KeyboardEvent.DOM_VK_A
437
+ *
438
+ */
279
439
  KEY_A = 65,
440
+ /**
441
+ * @remarks
442
+ * KeyboardEvent.DOM_VK_B
443
+ *
444
+ */
280
445
  KEY_B = 66,
446
+ /**
447
+ * @remarks
448
+ * KeyboardEvent.DOM_VK_C
449
+ *
450
+ */
281
451
  KEY_C = 67,
452
+ /**
453
+ * @remarks
454
+ * KeyboardEvent.DOM_VK_D
455
+ *
456
+ */
282
457
  KEY_D = 68,
458
+ /**
459
+ * @remarks
460
+ * KeyboardEvent.DOM_VK_E
461
+ *
462
+ */
283
463
  KEY_E = 69,
464
+ /**
465
+ * @remarks
466
+ * KeyboardEvent.DOM_VK_F
467
+ *
468
+ */
284
469
  KEY_F = 70,
470
+ /**
471
+ * @remarks
472
+ * KeyboardEvent.DOM_VK_G
473
+ *
474
+ */
285
475
  KEY_G = 71,
476
+ /**
477
+ * @remarks
478
+ * KeyboardEvent.DOM_VK_H
479
+ *
480
+ */
286
481
  KEY_H = 72,
482
+ /**
483
+ * @remarks
484
+ * KeyboardEvent.DOM_VK_I
485
+ *
486
+ */
287
487
  KEY_I = 73,
488
+ /**
489
+ * @remarks
490
+ * KeyboardEvent.DOM_VK_J
491
+ *
492
+ */
288
493
  KEY_J = 74,
494
+ /**
495
+ * @remarks
496
+ * KeyboardEvent.DOM_VK_K
497
+ *
498
+ */
289
499
  KEY_K = 75,
500
+ /**
501
+ * @remarks
502
+ * KeyboardEvent.DOM_VK_L
503
+ *
504
+ */
290
505
  KEY_L = 76,
506
+ /**
507
+ * @remarks
508
+ * KeyboardEvent.DOM_VK_M
509
+ *
510
+ */
291
511
  KEY_M = 77,
512
+ /**
513
+ * @remarks
514
+ * KeyboardEvent.DOM_VK_N
515
+ *
516
+ */
292
517
  KEY_N = 78,
518
+ /**
519
+ * @remarks
520
+ * KeyboardEvent.DOM_VK_O
521
+ *
522
+ */
293
523
  KEY_O = 79,
524
+ /**
525
+ * @remarks
526
+ * KeyboardEvent.DOM_VK_P
527
+ *
528
+ */
294
529
  KEY_P = 80,
530
+ /**
531
+ * @remarks
532
+ * KeyboardEvent.DOM_VK_Q
533
+ *
534
+ */
295
535
  KEY_Q = 81,
536
+ /**
537
+ * @remarks
538
+ * KeyboardEvent.DOM_VK_R
539
+ *
540
+ */
296
541
  KEY_R = 82,
542
+ /**
543
+ * @remarks
544
+ * KeyboardEvent.DOM_VK_S
545
+ *
546
+ */
297
547
  KEY_S = 83,
548
+ /**
549
+ * @remarks
550
+ * KeyboardEvent.DOM_VK_T
551
+ *
552
+ */
298
553
  KEY_T = 84,
554
+ /**
555
+ * @remarks
556
+ * KeyboardEvent.DOM_VK_U
557
+ *
558
+ */
299
559
  KEY_U = 85,
560
+ /**
561
+ * @remarks
562
+ * KeyboardEvent.DOM_VK_V
563
+ *
564
+ */
300
565
  KEY_V = 86,
566
+ /**
567
+ * @remarks
568
+ * KeyboardEvent.DOM_VK_W
569
+ *
570
+ */
301
571
  KEY_W = 87,
572
+ /**
573
+ * @remarks
574
+ * KeyboardEvent.DOM_VK_X
575
+ *
576
+ */
302
577
  KEY_X = 88,
578
+ /**
579
+ * @remarks
580
+ * KeyboardEvent.DOM_VK_Y
581
+ *
582
+ */
303
583
  KEY_Y = 89,
584
+ /**
585
+ * @remarks
586
+ * KeyboardEvent.DOM_VK_Z
587
+ *
588
+ */
304
589
  KEY_Z = 90,
590
+ /**
591
+ * @remarks
592
+ * KeyboardEvent.DOM_VK_NUMPAD0
593
+ *
594
+ */
305
595
  NUMPAD_0 = 96,
596
+ /**
597
+ * @remarks
598
+ * KeyboardEvent.DOM_VK_NUMPAD1
599
+ *
600
+ */
306
601
  NUMPAD_1 = 97,
602
+ /**
603
+ * @remarks
604
+ * KeyboardEvent.DOM_VK_NUMPAD2
605
+ *
606
+ */
307
607
  NUMPAD_2 = 98,
608
+ /**
609
+ * @remarks
610
+ * KeyboardEvent.DOM_VK_NUMPAD3
611
+ *
612
+ */
308
613
  NUMPAD_3 = 99,
614
+ /**
615
+ * @remarks
616
+ * KeyboardEvent.DOM_VK_NUMPAD4
617
+ *
618
+ */
309
619
  NUMPAD_4 = 100,
620
+ /**
621
+ * @remarks
622
+ * KeyboardEvent.DOM_VK_NUMPAD5
623
+ *
624
+ */
310
625
  NUMPAD_5 = 101,
626
+ /**
627
+ * @remarks
628
+ * KeyboardEvent.DOM_VK_NUMPAD6
629
+ *
630
+ */
311
631
  NUMPAD_6 = 102,
632
+ /**
633
+ * @remarks
634
+ * KeyboardEvent.DOM_VK_NUMPAD7
635
+ *
636
+ */
312
637
  NUMPAD_7 = 103,
638
+ /**
639
+ * @remarks
640
+ * KeyboardEvent.DOM_VK_NUMPAD8
641
+ *
642
+ */
313
643
  NUMPAD_8 = 104,
644
+ /**
645
+ * @remarks
646
+ * KeyboardEvent.DOM_VK_NUMPAD9
647
+ *
648
+ */
314
649
  NUMPAD_9 = 105,
650
+ /**
651
+ * @remarks
652
+ * KeyboardEvent.DOM_VK_MULTIPLY
653
+ *
654
+ */
315
655
  NUMPAD_MULTIPLY = 106,
656
+ /**
657
+ * @remarks
658
+ * KeyboardEvent.DOM_VK_ADD
659
+ *
660
+ */
316
661
  NUMPAD_ADD = 107,
662
+ /**
663
+ * @remarks
664
+ * KeyboardEvent.DOM_VK_SEPARATOR
665
+ *
666
+ */
317
667
  NUMPAD_SEPARATOR = 108,
668
+ /**
669
+ * @remarks
670
+ * KeyboardEvent.DOM_VK_SUBTRACT
671
+ *
672
+ */
318
673
  NUMPAD_SUBTRACT = 109,
674
+ /**
675
+ * @remarks
676
+ * KeyboardEvent.DOM_VK_DECIMAL
677
+ *
678
+ */
319
679
  NUMPAD_DECIMAL = 110,
680
+ /**
681
+ * @remarks
682
+ * KeyboardEvent.DOM_VK_DIVIDE
683
+ *
684
+ */
320
685
  NUMPAD_DIVIDE = 111,
686
+ /**
687
+ * @remarks
688
+ * KeyboardEvent.DOM_VK_F1
689
+ *
690
+ */
321
691
  F1 = 112,
692
+ /**
693
+ * @remarks
694
+ * KeyboardEvent.DOM_VK_F2
695
+ *
696
+ */
322
697
  F2 = 113,
698
+ /**
699
+ * @remarks
700
+ * KeyboardEvent.DOM_VK_F3
701
+ *
702
+ */
323
703
  F3 = 114,
704
+ /**
705
+ * @remarks
706
+ * KeyboardEvent.DOM_VK_F4
707
+ *
708
+ */
324
709
  F4 = 115,
710
+ /**
711
+ * @remarks
712
+ * KeyboardEvent.DOM_VK_F5
713
+ *
714
+ */
325
715
  F5 = 116,
716
+ /**
717
+ * @remarks
718
+ * KeyboardEvent.DOM_VK_F6
719
+ *
720
+ */
326
721
  F6 = 117,
722
+ /**
723
+ * @remarks
724
+ * KeyboardEvent.DOM_VK_F7
725
+ *
726
+ */
327
727
  F7 = 118,
728
+ /**
729
+ * @remarks
730
+ * KeyboardEvent.DOM_VK_F8
731
+ *
732
+ */
328
733
  F8 = 119,
734
+ /**
735
+ * @remarks
736
+ * KeyboardEvent.DOM_VK_F9
737
+ *
738
+ */
329
739
  F9 = 120,
740
+ /**
741
+ * @remarks
742
+ * KeyboardEvent.DOM_VK_F10
743
+ *
744
+ */
330
745
  F10 = 121,
746
+ /**
747
+ * @remarks
748
+ * KeyboardEvent.DOM_VK_F11
749
+ *
750
+ */
331
751
  F11 = 122,
752
+ /**
753
+ * @remarks
754
+ * KeyboardEvent.DOM_VK_F12
755
+ *
756
+ */
332
757
  F12 = 123,
758
+ /**
759
+ * @remarks
760
+ * KeyboardEvent.DOM_VK_COMMA, ie. ','
761
+ *
762
+ */
333
763
  COMMA = 188,
764
+ /**
765
+ * @remarks
766
+ * KeyboardEvent.DOM_VK_PERIOD, ie. '.'
767
+ *
768
+ */
334
769
  PERIOD = 190,
770
+ /**
771
+ * @remarks
772
+ * KeyboardEvent.DOM_VK_SLASH, ie. '/'
773
+ *
774
+ */
335
775
  SLASH = 191,
776
+ /**
777
+ * @remarks
778
+ * KeyboardEvent.DOM_VK_BACK_QUOTE, ie. '`'
779
+ *
780
+ */
336
781
  BACK_QUOTE = 192,
782
+ /**
783
+ * @remarks
784
+ * KeyboardEvent.DOM_VK_OPEN_BRACKET, ie. '['
785
+ *
786
+ */
337
787
  BRACKET_OPEN = 219,
788
+ /**
789
+ * @remarks
790
+ * KeyboardEvent.DOM_VK_BACK_SLASH, ie. '\'
791
+ *
792
+ */
338
793
  BACK_SLASH = 220,
794
+ /**
795
+ * @remarks
796
+ * KeyboardEvent.DOM_VK_CLOSE_BRACKET, ie. ']'
797
+ *
798
+ */
339
799
  BRACKET_CLOSE = 221,
800
+ /**
801
+ * @remarks
802
+ * KeyboardEvent.DOM_VK_BACK_QUOTE, ie. '"'
803
+ *
804
+ */
340
805
  QUOTE = 222,
341
806
  }
342
807
 
@@ -1287,6 +1752,15 @@ export class ExportManager {
1287
1752
  *
1288
1753
  */
1289
1754
  getGameOptions(useDefault?: boolean): GameOptions;
1755
+ /**
1756
+ * @remarks
1757
+ * This function can't be called in read-only mode.
1758
+ *
1759
+ * @throws This function can throw errors.
1760
+ *
1761
+ * {@link Error}
1762
+ */
1763
+ getGameVersion(): string;
1290
1764
  }
1291
1765
 
1292
1766
  /**
@@ -2065,6 +2539,15 @@ export class SimulationState {
2065
2539
  */
2066
2540
  export class TransactionManager {
2067
2541
  private constructor();
2542
+ /**
2543
+ * @remarks
2544
+ * This function can't be called in read-only mode.
2545
+ *
2546
+ * @throws This function can throw errors.
2547
+ *
2548
+ * {@link Error}
2549
+ */
2550
+ addEntityOperation(entity: minecraftserver.Entity, type: EntityOperationType): boolean;
2068
2551
  /**
2069
2552
  * @remarks
2070
2553
  * This function can't be called in read-only mode.
@@ -2909,22 +3392,19 @@ export interface IDisposable {
2909
3392
  teardown(): void;
2910
3393
  }
2911
3394
 
3395
+ /**
3396
+ * Properties of dropdown property item children
3397
+ */
2912
3398
  export interface IDropdownItem {
2913
3399
  /**
2914
3400
  * @remarks
2915
- * Fallback display text if no loc ID
2916
- *
2917
- */
2918
- readonly displayAltText: string;
2919
- /**
2920
- * @remarks
2921
- * Loc ID (resolved on client)
3401
+ * Localized display text of the dropdown item.
2922
3402
  *
2923
3403
  */
2924
- readonly displayStringId: string;
3404
+ readonly label: string;
2925
3405
  /**
2926
3406
  * @remarks
2927
- * The selectable value of the DropDown item.
3407
+ * The selectable value of the dropdown item.
2928
3408
  *
2929
3409
  */
2930
3410
  readonly value: number;
@@ -3032,12 +3512,6 @@ export interface IMenuCreationParams {
3032
3512
  *
3033
3513
  */
3034
3514
  checked?: boolean;
3035
- /**
3036
- * @remarks
3037
- * Loc ID (resolved on client)
3038
- *
3039
- */
3040
- displayStringId?: string;
3041
3515
  /**
3042
3516
  * @remarks
3043
3517
  * Whether the menu should be enabled or disabled
@@ -3046,10 +3520,10 @@ export interface IMenuCreationParams {
3046
3520
  enabled?: boolean;
3047
3521
  /**
3048
3522
  * @remarks
3049
- * The name of the menu
3523
+ * Localized display text of the menu
3050
3524
  *
3051
3525
  */
3052
- name: string;
3526
+ label: string;
3053
3527
  /**
3054
3528
  * @remarks
3055
3529
  * Custom unique identifier that will replace random id
@@ -3208,16 +3682,10 @@ export interface IPropertyItemOptions {
3208
3682
  onChange?: OnChangeCallback<PropertyBag, string>;
3209
3683
  /**
3210
3684
  * @remarks
3211
- * Fallback display text if no loc ID
3685
+ * Localized title of the property item
3212
3686
  *
3213
3687
  */
3214
- titleAltText?: string;
3215
- /**
3216
- * @remarks
3217
- * Loc ID (resolved on client)
3218
- *
3219
- */
3220
- titleStringId?: string;
3688
+ title?: string;
3221
3689
  /**
3222
3690
  * @remarks
3223
3691
  * If the item should be visible in the UI.
@@ -3286,6 +3754,13 @@ export interface IPropertyItemOptionsImage extends IPropertyItemOptions {
3286
3754
 
3287
3755
  // @ts-ignore Class inheritance allowed for native defined classes
3288
3756
  export interface IPropertyItemOptionsNumber extends IPropertyItemOptions {
3757
+ /**
3758
+ * @remarks
3759
+ * If we should treat the number as floating point. By default
3760
+ * is false
3761
+ *
3762
+ */
3763
+ isFloat?: boolean;
3289
3764
  /**
3290
3765
  * @remarks
3291
3766
  * The min possible value for the number.
@@ -3328,8 +3803,8 @@ export interface IPropertyItemOptionsTable extends IPropertyItemOptions {
3328
3803
  */
3329
3804
  // @ts-ignore Class inheritance allowed for native defined classes
3330
3805
  export interface IPropertyItemOptionsText extends IPropertyItemOptions {
3331
- border: boolean;
3332
- valueStringId: string;
3806
+ border?: boolean;
3807
+ valueStringId?: string;
3333
3808
  }
3334
3809
 
3335
3810
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -3410,16 +3885,10 @@ export interface IPropertyPane {
3410
3885
  readonly parentPaneId?: string;
3411
3886
  /**
3412
3887
  * @remarks
3413
- * Fallback display text if no loc ID
3888
+ * Localized title of the property pane
3414
3889
  *
3415
3890
  */
3416
- titleAltText: string;
3417
- /**
3418
- * @remarks
3419
- * Loc ID (resolved on client)
3420
- *
3421
- */
3422
- titleStringId: string;
3891
+ title: string;
3423
3892
  /**
3424
3893
  * @remarks
3425
3894
  * Check visibility of the pane
@@ -3631,23 +4100,10 @@ export interface IPropertyPaneOptions {
3631
4100
  direction?: LayoutDirection;
3632
4101
  /**
3633
4102
  * @remarks
3634
- * Fallback display text if no loc ID
3635
- *
3636
- */
3637
- titleAltText: string;
3638
- /**
3639
- * @remarks
3640
- * Loc ID (resolved on client)
4103
+ * Localized title of the property pane
3641
4104
  *
3642
4105
  */
3643
- titleStringId: string;
3644
- /**
3645
- * @remarks
3646
- * Width of the panel in rem. This property is ignored in case
3647
- * of sub panes
3648
- *
3649
- */
3650
- width?: number;
4106
+ title: string;
3651
4107
  }
3652
4108
 
3653
4109
  export interface IPropertyTableCellItem {
@@ -4055,15 +4511,7 @@ export interface ISimpleToolPaneOptions {
4055
4511
  * bar of the pane.
4056
4512
  *
4057
4513
  */
4058
- titleAltText: string;
4059
- /**
4060
- * @remarks
4061
- * The string id of the title of the pane. This will be
4062
- * displayed in the title bar of the pane if it exists in the
4063
- * language file, otherwise the titleAltText will be used.
4064
- *
4065
- */
4066
- titleStringId?: string;
4514
+ title: string;
4067
4515
  }
4068
4516
 
4069
4517
  export interface ISimpleToolRailComponent {
@@ -4104,19 +4552,6 @@ export interface ISimpleToolRailComponent {
4104
4552
  * gameplay interaction
4105
4553
  */
4106
4554
  export interface ISimpleToolRailOptions {
4107
- /**
4108
- * @remarks
4109
- * The text for the tool description
4110
- *
4111
- */
4112
- displayAltText: string;
4113
- /**
4114
- * @remarks
4115
- * The string ID for the tool description if it is in the
4116
- * localization language file.
4117
- *
4118
- */
4119
- displayStringId?: string;
4120
4555
  /**
4121
4556
  * @remarks
4122
4557
  * The icon for the tool rail button. This is generally a URL
@@ -4131,21 +4566,18 @@ export interface ISimpleToolRailOptions {
4131
4566
  onTeardown?: (component: ISimpleToolRailComponent) => void;
4132
4567
  /**
4133
4568
  * @remarks
4134
- * The tooltip string for the tool rail button. Note: if an
4135
- * activation key binding was added to `ISimpleToolOptions`,
4136
- * then the key binding will be appended to the tooltip string.
4569
+ * The text for the tool title
4137
4570
  *
4138
4571
  */
4139
- tooltipAltText: string;
4572
+ title: string;
4140
4573
  /**
4141
4574
  * @remarks
4142
- * The string ID for the tooltip string if it is in the
4143
- * localization language file. Note: if an activation key
4144
- * binding was added to `ISimpleToolOptions`, then the key
4575
+ * The tooltip description for the tool. Note: if an activation
4576
+ * key binding was added to `ISimpleToolOptions`, then the key
4145
4577
  * binding will be appended to the tooltip string.
4146
4578
  *
4147
4579
  */
4148
- tooltipStringId?: string;
4580
+ tooltip: string;
4149
4581
  }
4150
4582
 
4151
4583
  export interface ISimpleToolStatusBarComponent {
@@ -4215,18 +4647,6 @@ export interface IStatusBarItem {
4215
4647
  * Parameters for creating a modal tool in the tool container
4216
4648
  */
4217
4649
  export interface ModalToolCreationParameters {
4218
- /**
4219
- * @remarks
4220
- * The displayed string for the tool
4221
- *
4222
- */
4223
- displayAltText: string;
4224
- /**
4225
- * @remarks
4226
- * Loc ID (resolved on client)
4227
- *
4228
- */
4229
- displayStringId?: string;
4230
4650
  /**
4231
4651
  * @remarks
4232
4652
  * Icon, if any (from resource pack on client)
@@ -4247,16 +4667,16 @@ export interface ModalToolCreationParameters {
4247
4667
  inputContextLabel?: string;
4248
4668
  /**
4249
4669
  * @remarks
4250
- * tooltipAltText alt text, if any
4670
+ * Title of the tool
4251
4671
  *
4252
4672
  */
4253
- tooltipAltText?: string;
4673
+ title: string;
4254
4674
  /**
4255
4675
  * @remarks
4256
- * Tooltip localization string ID
4676
+ * Tooltip description of the toll
4257
4677
  *
4258
4678
  */
4259
- tooltipStringId?: string;
4679
+ tooltip?: string;
4260
4680
  }
4261
4681
 
4262
4682
  /**
@@ -4313,13 +4733,6 @@ export declare function executeLargeOperationFromIterator(
4313
4733
  * Default allowed block list
4314
4734
  */
4315
4735
  export declare function getBlockPickerDefaultAllowBlockList(): string[];
4316
- /**
4317
- * @remarks
4318
- * Adds the resource pack editor prefix and returns the full
4319
- * localization ID
4320
- *
4321
- */
4322
- export declare function getLocalizationId(locId: string): string;
4323
4736
  /**
4324
4737
  * @remarks
4325
4738
  * Registers an editor extension into Minecraft. This function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-editor",
3
- "version": "0.1.0-beta.1.21.20-preview.21",
3
+ "version": "0.1.0-beta.1.21.20-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": "^1.14.0-beta.1.21.20-preview.21"
17
+ "@minecraft/server": "^1.14.0-beta.1.21.20-preview.22"
18
18
  },
19
19
  "license": "MIT"
20
20
  }