@minecraft/server-editor 0.1.0-beta.1.21.80-preview.28 → 0.1.0-beta.1.21.90-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.
Files changed (2) hide show
  1. package/index.d.ts +39 -8
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -992,13 +992,6 @@ export enum Plane {
992
992
  YZ = 4,
993
993
  }
994
994
 
995
- export enum PlayerPermissionLevel {
996
- Visitor = 0,
997
- Member = 1,
998
- Operator = 2,
999
- Custom = 3,
1000
- }
1001
-
1002
995
  export enum PlaytestSessionResult {
1003
996
  OK = 0,
1004
997
  InvalidSessionHandle = 1,
@@ -1200,6 +1193,14 @@ export enum WidgetMouseButtonActionType {
1200
1193
  Drag = 2,
1201
1194
  }
1202
1195
 
1196
+ export enum WorldGeneratorType {
1197
+ Flat = 'Flat',
1198
+ Nether = 'Nether',
1199
+ Overworld = 'Overworld',
1200
+ TheEnd = 'TheEnd',
1201
+ Void = 'Void',
1202
+ }
1203
+
1203
1204
  /**
1204
1205
  * Full set of all possible raw actions
1205
1206
  */
@@ -2660,6 +2661,7 @@ export class MinecraftEditor {
2660
2661
  *
2661
2662
  */
2662
2663
  readonly simulation: SimulationState;
2664
+ readonly worldGeneratorType?: WorldGeneratorType;
2663
2665
  }
2664
2666
 
2665
2667
  /**
@@ -4527,6 +4529,7 @@ export interface GameOptions {
4527
4529
  keepInventory?: boolean;
4528
4530
  lanVisibility?: boolean;
4529
4531
  limitedCrafting?: boolean;
4532
+ locatorBar?: boolean;
4530
4533
  maxCommandChainLength?: number;
4531
4534
  mobGriefing?: boolean;
4532
4535
  mobLoot?: boolean;
@@ -4534,7 +4537,7 @@ export interface GameOptions {
4534
4537
  multiplayerGame?: boolean;
4535
4538
  naturalRegeneration?: boolean;
4536
4539
  playerAccess?: GamePublishSetting;
4537
- playerPermissions?: PlayerPermissionLevel;
4540
+ playerPermissions?: minecraftserver.PlayerPermissionLevel;
4538
4541
  randomTickSpeed?: number;
4539
4542
  recipeUnlocking?: boolean;
4540
4543
  respawnBlocksExplode?: boolean;
@@ -4627,6 +4630,13 @@ export interface IActionBarItemCreationParams {
4627
4630
  *
4628
4631
  */
4629
4632
  enabled?: boolean;
4633
+ /**
4634
+ * @remarks
4635
+ * Sets whether the Action Bar Item's execute is run when it is
4636
+ * added to the Action Bar. If not defined, default is false.
4637
+ *
4638
+ */
4639
+ executeOnAdd?: boolean;
4630
4640
  /**
4631
4641
  * @remarks
4632
4642
  * Icon resource for the item.
@@ -6234,6 +6244,13 @@ export interface IPropertyPane extends IPane {
6234
6244
  value: IObservableProp<minecraftserver.Vector3>,
6235
6245
  options?: IVector3PropertyItemOptions,
6236
6246
  ): IVector3PropertyItem;
6247
+ /**
6248
+ * @remarks
6249
+ * Begins pane construction for batching property item
6250
+ * additions
6251
+ *
6252
+ */
6253
+ beginConstruct(): void;
6237
6254
  /**
6238
6255
  * @remarks
6239
6256
  * Collapse the pane.
@@ -6246,6 +6263,12 @@ export interface IPropertyPane extends IPane {
6246
6263
  *
6247
6264
  */
6248
6265
  createSubPane(options: ISubPanePropertyItemOptions): ISubPanePropertyItem;
6266
+ /**
6267
+ * @remarks
6268
+ * Finalizes pane construction and synchronizes item data
6269
+ *
6270
+ */
6271
+ endConstruct(): void;
6249
6272
  /**
6250
6273
  * @remarks
6251
6274
  * Returns pane title.
@@ -6266,6 +6289,14 @@ export interface IPropertyPane extends IPane {
6266
6289
  * New title
6267
6290
  */
6268
6291
  setTitle(newTitle: LocalizedString | undefined): void;
6292
+ /**
6293
+ * @remarks
6294
+ * Shows only the specified sub-pane, hiding all others
6295
+ *
6296
+ * @param subPaneId
6297
+ * Identifier of the sub pane to display.
6298
+ */
6299
+ toggleSubPaneVisibility(subPaneId: string | undefined): void;
6269
6300
  }
6270
6301
 
6271
6302
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-editor",
3
- "version": "0.1.0-beta.1.21.80-preview.28",
3
+ "version": "0.1.0-beta.1.21.90-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.0.0-beta.1.21.80-preview.28"
17
+ "@minecraft/server": "^2.1.0-beta.1.21.90-preview.21"
18
18
  },
19
19
  "license": "MIT"
20
20
  }