@minecraft/server-editor 0.1.0-beta.1.26.10-preview.23 → 0.1.0-beta.1.26.10-preview.25

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 +162 -1
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1060,6 +1060,7 @@ export enum MinimapViewType {
1060
1060
  *
1061
1061
  */
1062
1062
  BlockView = 0,
1063
+ CustomBiomeView = 1,
1063
1064
  }
1064
1065
 
1065
1066
  /**
@@ -1231,6 +1232,7 @@ export declare enum PropertyItemType {
1231
1232
  ProxyPane = 'editorUI:ProxyPane',
1232
1233
  String = 'editorUI:String',
1233
1234
  SubPane = 'editorUI:SubPane',
1235
+ TagContainer = 'editorUI:TagContainer',
1234
1236
  Text = 'editorUI:Text',
1235
1237
  ToggleGroup = 'editorUI:ToggleGroup',
1236
1238
  Vector2 = 'editorUI:Vector2',
@@ -1271,6 +1273,14 @@ export enum StructureSource {
1271
1273
  Level = 3,
1272
1274
  }
1273
1275
 
1276
+ /**
1277
+ * The possible variants of a TagContainer property item.
1278
+ */
1279
+ export declare enum TagContainerVariant {
1280
+ Primary = 0,
1281
+ Inverted = 1,
1282
+ }
1283
+
1274
1284
  export enum ThemeSettingsColorKey {
1275
1285
  Caret = 'Caret',
1276
1286
  Confirm1 = 'Confirm1',
@@ -2715,6 +2725,7 @@ export declare class CuboidBrushShape extends BrushShape {
2715
2725
  hollow?: boolean;
2716
2726
  thickness?: number;
2717
2727
  enableHollowSettings?: boolean;
2728
+ hideRotation?: boolean;
2718
2729
  });
2719
2730
  applySetting(brushSettings: CuboidBrushShapeSettings): void;
2720
2731
  calculateBounds(): minecraftserver.BlockBoundingBox;
@@ -3727,7 +3738,7 @@ export class MinimapManager {
3727
3738
  *
3728
3739
  * @throws This function can throw errors.
3729
3740
  */
3730
- createMinimap(viewType: MinimapViewType, mapWidth: number, mapHeight: number): MinimapItem;
3741
+ createMinimap(viewType: MinimapViewType, mapWidth: number, mapHeight: number, dataId?: string): MinimapItem;
3731
3742
  /**
3732
3743
  * @remarks
3733
3744
  * Remove an existing minimap instance from the manager using
@@ -9572,6 +9583,12 @@ export interface IPropertyPane extends IPane {
9572
9583
  *
9573
9584
  */
9574
9585
  addString(value: IObservableProp<string>, options?: IStringPropertyItemOptions): IStringPropertyItem;
9586
+ /**
9587
+ * @remarks
9588
+ * Adds a tag container to the pane.
9589
+ *
9590
+ */
9591
+ addTagContainer(options?: ITagContainerPropertyItemOptions): ITagContainerPropertyItem;
9575
9592
  /**
9576
9593
  * @remarks
9577
9594
  * Adds a multiline Text item to the pane.
@@ -9826,6 +9843,12 @@ export interface IRootPropertyPaneOptions extends IPropertyPaneOptions {
9826
9843
  *
9827
9844
  */
9828
9845
  headerAction?: IRootPropertyPaneHeaderAction;
9846
+ /**
9847
+ * @remarks
9848
+ * Pane icon shown in front of the pane header
9849
+ *
9850
+ */
9851
+ icon?: string;
9829
9852
  }
9830
9853
 
9831
9854
  /**
@@ -10065,6 +10088,12 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
10065
10088
  *
10066
10089
  */
10067
10090
  hasMargins?: boolean;
10091
+ /**
10092
+ * @remarks
10093
+ * Pane icon shown in front of the pane header
10094
+ *
10095
+ */
10096
+ icon?: string;
10068
10097
  /**
10069
10098
  * @remarks
10070
10099
  * Determines layout of sub pane property items. If undefined,
@@ -10093,6 +10122,133 @@ export interface ISubPanePropertyItemOptions extends IPropertyPaneOptions {
10093
10122
  width?: number | LayoutSize;
10094
10123
  }
10095
10124
 
10125
+ /**
10126
+ * A property item which supports Tag Container properties
10127
+ */
10128
+ // @ts-ignore Class inheritance allowed for native defined classes
10129
+ export interface ITagContainerPropertyItem extends IPropertyItemBase {
10130
+ /**
10131
+ * @remarks
10132
+ * Current tags value of the property item.
10133
+ *
10134
+ */
10135
+ readonly tags: ReadonlyArray<string>;
10136
+ /**
10137
+ * @remarks
10138
+ * Current tags pool value of the property item.
10139
+ *
10140
+ */
10141
+ readonly tagsPool: ReadonlyArray<string>;
10142
+ /**
10143
+ * @remarks
10144
+ * Adds a tag to the current tags.
10145
+ *
10146
+ * @param tag
10147
+ * Tag to add.
10148
+ */
10149
+ addTag(tag: string): void;
10150
+ /**
10151
+ * @remarks
10152
+ * Adds a tag to the tags pool.
10153
+ *
10154
+ * @param tag
10155
+ * Tag to add to the pool.
10156
+ */
10157
+ addTagToPool(tag: string): void;
10158
+ /**
10159
+ * @remarks
10160
+ * Removes a tag from the current tags.
10161
+ *
10162
+ * @param tag
10163
+ * Tag to remove.
10164
+ */
10165
+ removeTag(tag: string): void;
10166
+ /**
10167
+ * @remarks
10168
+ * Removes a tag from the tags pool.
10169
+ *
10170
+ * @param tag
10171
+ * Tag to remove from the pool.
10172
+ */
10173
+ removeTagFromPool(tag: string): void;
10174
+ /**
10175
+ * @remarks
10176
+ * Updates all tags.
10177
+ *
10178
+ * @param tags
10179
+ * New tags array.
10180
+ */
10181
+ setTags(tags: string[] | undefined): void;
10182
+ /**
10183
+ * @remarks
10184
+ * Updates the tags pool.
10185
+ *
10186
+ * @param tagsPool
10187
+ * New tags pool array.
10188
+ */
10189
+ setTagsPool(tagsPool: string[] | undefined): void;
10190
+ /**
10191
+ * @remarks
10192
+ * Set title of the property item.
10193
+ *
10194
+ * @param title
10195
+ * New title.
10196
+ */
10197
+ setTitle(title: LocalizedString): void;
10198
+ /**
10199
+ * @remarks
10200
+ * Sets the visual variant of the tag container.
10201
+ *
10202
+ * @param variant
10203
+ * New variant.
10204
+ */
10205
+ setVariant(variant: TagContainerVariant | undefined): void;
10206
+ }
10207
+
10208
+ /**
10209
+ * Optional properties for Tag Container property item
10210
+ */
10211
+ // @ts-ignore Class inheritance allowed for native defined classes
10212
+ export interface ITagContainerPropertyItemOptions extends IPropertyItemOptionsBase {
10213
+ /**
10214
+ * @remarks
10215
+ * This callback is called when a tag is added.
10216
+ *
10217
+ */
10218
+ onTagAdded?: (tag: string) => void;
10219
+ /**
10220
+ * @remarks
10221
+ * This callback is called when a tag is removed.
10222
+ *
10223
+ */
10224
+ onTagRemoved?: (tag: string) => void;
10225
+ /**
10226
+ * @remarks
10227
+ * Initial tags for the container.
10228
+ *
10229
+ */
10230
+ tags?: string[];
10231
+ /**
10232
+ * @remarks
10233
+ * Available tags pool to select from.
10234
+ *
10235
+ */
10236
+ tagsPool?: string[];
10237
+ /**
10238
+ * @remarks
10239
+ * Localized title of the property item.
10240
+ *
10241
+ */
10242
+ title?: LocalizedString;
10243
+ /**
10244
+ * @remarks
10245
+ * Visual variant of the tag container. If undefined, it will
10246
+ * default to Inverted.
10247
+ *
10248
+ */
10249
+ variant?: TagContainerVariant;
10250
+ }
10251
+
10096
10252
  /**
10097
10253
  * A property item which supports Text properties
10098
10254
  */
@@ -10952,6 +11108,11 @@ export class InvalidWidgetGroupError extends Error {
10952
11108
  private constructor();
10953
11109
  }
10954
11110
 
11111
+ // @ts-ignore Class inheritance allowed for native defined classes
11112
+ export class TransactionManagerNoChangesError extends Error {
11113
+ private constructor();
11114
+ }
11115
+
10955
11116
  /**
10956
11117
  * @remarks
10957
11118
  * Deserialize anything, defaults to the same behavior as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server-editor",
3
- "version": "0.1.0-beta.1.26.10-preview.23",
3
+ "version": "0.1.0-beta.1.26.10-preview.25",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -14,8 +14,8 @@
14
14
  ],
15
15
  "peerDependencies": {
16
16
  "@minecraft/common": "^1.0.0",
17
- "@minecraft/server": "^2.7.0-beta.1.26.10-preview.23",
18
- "@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.23"
17
+ "@minecraft/server": "^2.7.0-beta.1.26.10-preview.25",
18
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.25"
19
19
  },
20
20
  "license": "MIT"
21
21
  }