@minecraft/server-editor 0.1.0-beta.1.21.80-preview.27 → 0.1.0-beta.1.21.90-preview.20

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 +38 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1200,6 +1200,14 @@ export enum WidgetMouseButtonActionType {
1200
1200
  Drag = 2,
1201
1201
  }
1202
1202
 
1203
+ export enum WorldGeneratorType {
1204
+ Flat = 'Flat',
1205
+ Nether = 'Nether',
1206
+ Overworld = 'Overworld',
1207
+ TheEnd = 'TheEnd',
1208
+ Void = 'Void',
1209
+ }
1210
+
1203
1211
  /**
1204
1212
  * Full set of all possible raw actions
1205
1213
  */
@@ -2660,6 +2668,7 @@ export class MinecraftEditor {
2660
2668
  *
2661
2669
  */
2662
2670
  readonly simulation: SimulationState;
2671
+ readonly worldGeneratorType?: WorldGeneratorType;
2663
2672
  }
2664
2673
 
2665
2674
  /**
@@ -4527,6 +4536,7 @@ export interface GameOptions {
4527
4536
  keepInventory?: boolean;
4528
4537
  lanVisibility?: boolean;
4529
4538
  limitedCrafting?: boolean;
4539
+ locatorBar?: boolean;
4530
4540
  maxCommandChainLength?: number;
4531
4541
  mobGriefing?: boolean;
4532
4542
  mobLoot?: boolean;
@@ -4627,6 +4637,13 @@ export interface IActionBarItemCreationParams {
4627
4637
  *
4628
4638
  */
4629
4639
  enabled?: boolean;
4640
+ /**
4641
+ * @remarks
4642
+ * Sets whether the Action Bar Item's execute is run when it is
4643
+ * added to the Action Bar. If not defined, default is false.
4644
+ *
4645
+ */
4646
+ executeOnAdd?: boolean;
4630
4647
  /**
4631
4648
  * @remarks
4632
4649
  * Icon resource for the item.
@@ -6234,6 +6251,13 @@ export interface IPropertyPane extends IPane {
6234
6251
  value: IObservableProp<minecraftserver.Vector3>,
6235
6252
  options?: IVector3PropertyItemOptions,
6236
6253
  ): IVector3PropertyItem;
6254
+ /**
6255
+ * @remarks
6256
+ * Begins pane construction for batching property item
6257
+ * additions
6258
+ *
6259
+ */
6260
+ beginConstruct(): void;
6237
6261
  /**
6238
6262
  * @remarks
6239
6263
  * Collapse the pane.
@@ -6246,6 +6270,12 @@ export interface IPropertyPane extends IPane {
6246
6270
  *
6247
6271
  */
6248
6272
  createSubPane(options: ISubPanePropertyItemOptions): ISubPanePropertyItem;
6273
+ /**
6274
+ * @remarks
6275
+ * Finalizes pane construction and synchronizes item data
6276
+ *
6277
+ */
6278
+ endConstruct(): void;
6249
6279
  /**
6250
6280
  * @remarks
6251
6281
  * Returns pane title.
@@ -6266,6 +6296,14 @@ export interface IPropertyPane extends IPane {
6266
6296
  * New title
6267
6297
  */
6268
6298
  setTitle(newTitle: LocalizedString | undefined): void;
6299
+ /**
6300
+ * @remarks
6301
+ * Shows only the specified sub-pane, hiding all others
6302
+ *
6303
+ * @param subPaneId
6304
+ * Identifier of the sub pane to display.
6305
+ */
6306
+ toggleSubPaneVisibility(subPaneId: string | undefined): void;
6269
6307
  }
6270
6308
 
6271
6309
  /**
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.27",
3
+ "version": "0.1.0-beta.1.21.90-preview.20",
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.27"
17
+ "@minecraft/server": "^2.1.0-beta.1.21.90-preview.20"
18
18
  },
19
19
  "license": "MIT"
20
20
  }