@minecraft/server-editor 0.1.0-beta.1.26.10-preview.22 → 0.1.0-beta.1.26.10-preview.23
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 +182 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1015,6 +1015,13 @@ export declare enum ListPaneViewSortType {
|
|
|
1015
1015
|
ZtoA = 2,
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
+
export declare enum ListViewControlFilterFlags {
|
|
1019
|
+
None = 0,
|
|
1020
|
+
Name = 1,
|
|
1021
|
+
Tag = 2,
|
|
1022
|
+
All = 3,
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1018
1025
|
export enum LogChannel {
|
|
1019
1026
|
/**
|
|
1020
1027
|
* @remarks
|
|
@@ -1730,6 +1737,23 @@ export declare type ListPaneViewFilter = {
|
|
|
1730
1737
|
tags?: string[];
|
|
1731
1738
|
};
|
|
1732
1739
|
|
|
1740
|
+
/**
|
|
1741
|
+
* Action item to be displayed on a list view control
|
|
1742
|
+
*/
|
|
1743
|
+
export type ListViewControlAction = {
|
|
1744
|
+
id: string;
|
|
1745
|
+
} & ListViewControlActionState;
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Action item state for list view control
|
|
1749
|
+
*/
|
|
1750
|
+
export type ListViewControlActionState = {
|
|
1751
|
+
label: LocalizedString;
|
|
1752
|
+
icon: string;
|
|
1753
|
+
disabled?: boolean;
|
|
1754
|
+
displayInMenu?: boolean;
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1733
1757
|
/**
|
|
1734
1758
|
* Represents a localized string or an object with a localized
|
|
1735
1759
|
* string and optional properties
|
|
@@ -2647,9 +2671,14 @@ export declare class ConeBrushShape extends BrushShape {
|
|
|
2647
2671
|
width?: number;
|
|
2648
2672
|
height?: number;
|
|
2649
2673
|
depth?: number;
|
|
2674
|
+
maxRadius?: number;
|
|
2675
|
+
maxHeight?: number;
|
|
2650
2676
|
xRotation?: number;
|
|
2651
2677
|
yRotation?: number;
|
|
2652
2678
|
zRotation?: number;
|
|
2679
|
+
hollow?: boolean;
|
|
2680
|
+
thickness?: number;
|
|
2681
|
+
enableHollowSettings?: boolean;
|
|
2653
2682
|
});
|
|
2654
2683
|
applySetting(brushSettings: ConeBrushShapeSettings): void;
|
|
2655
2684
|
calculateBounds(): minecraftserver.BlockBoundingBox;
|
|
@@ -2679,9 +2708,13 @@ export declare class CuboidBrushShape extends BrushShape {
|
|
|
2679
2708
|
height?: number;
|
|
2680
2709
|
depth?: number;
|
|
2681
2710
|
minLength?: number;
|
|
2711
|
+
maxLength?: number;
|
|
2682
2712
|
xRotation?: number;
|
|
2683
2713
|
yRotation?: number;
|
|
2684
2714
|
zRotation?: number;
|
|
2715
|
+
hollow?: boolean;
|
|
2716
|
+
thickness?: number;
|
|
2717
|
+
enableHollowSettings?: boolean;
|
|
2685
2718
|
});
|
|
2686
2719
|
applySetting(brushSettings: CuboidBrushShapeSettings): void;
|
|
2687
2720
|
calculateBounds(): minecraftserver.BlockBoundingBox;
|
|
@@ -2960,10 +2993,15 @@ export declare class CylinderBrushShape extends BrushShape {
|
|
|
2960
2993
|
height?: number;
|
|
2961
2994
|
depth?: number;
|
|
2962
2995
|
minRadius?: number;
|
|
2996
|
+
maxRadius?: number;
|
|
2997
|
+
maxHeight?: number;
|
|
2963
2998
|
xRotation?: number;
|
|
2964
2999
|
yRotation?: number;
|
|
2965
3000
|
zRotation?: number;
|
|
2966
3001
|
hideRotation?: boolean;
|
|
3002
|
+
hollow?: boolean;
|
|
3003
|
+
thickness?: number;
|
|
3004
|
+
enableHollowSettings?: boolean;
|
|
2967
3005
|
});
|
|
2968
3006
|
applySetting(brushSettings: CylinderBrushShapeSettings): void;
|
|
2969
3007
|
calculateBounds(): minecraftserver.BlockBoundingBox;
|
|
@@ -3162,9 +3200,13 @@ export declare class EllipsoidBrushShape extends BrushShape {
|
|
|
3162
3200
|
height?: number;
|
|
3163
3201
|
depth?: number;
|
|
3164
3202
|
minRadius?: number;
|
|
3203
|
+
maxRadius?: number;
|
|
3165
3204
|
xRotation?: number;
|
|
3166
3205
|
yRotation?: number;
|
|
3167
3206
|
zRotation?: number;
|
|
3207
|
+
hollow?: boolean;
|
|
3208
|
+
thickness?: number;
|
|
3209
|
+
enableHollowSettings?: boolean;
|
|
3168
3210
|
});
|
|
3169
3211
|
applySetting(brushSettings: EllipsoidBrushShapeSettings): void;
|
|
3170
3212
|
calculateBounds(): minecraftserver.BlockBoundingBox;
|
|
@@ -3865,9 +3907,14 @@ export declare class PyramidBrushShape extends BrushShape {
|
|
|
3865
3907
|
width?: number;
|
|
3866
3908
|
height?: number;
|
|
3867
3909
|
depth?: number;
|
|
3910
|
+
maxSide?: number;
|
|
3911
|
+
maxHeight?: number;
|
|
3868
3912
|
xRotation?: number;
|
|
3869
3913
|
yRotation?: number;
|
|
3870
3914
|
zRotation?: number;
|
|
3915
|
+
hollow?: boolean;
|
|
3916
|
+
thickness?: number;
|
|
3917
|
+
enableHollowSettings?: boolean;
|
|
3871
3918
|
});
|
|
3872
3919
|
applySetting(brushSettings: PyramidBrushShapeSettings): void;
|
|
3873
3920
|
calculateBounds(): minecraftserver.BlockBoundingBox;
|
|
@@ -5833,7 +5880,9 @@ export interface ClipboardWriteOptions {
|
|
|
5833
5880
|
export interface ConeBrushShapeSettings {
|
|
5834
5881
|
depth: number;
|
|
5835
5882
|
height: number;
|
|
5883
|
+
hollow: boolean;
|
|
5836
5884
|
radius: number;
|
|
5885
|
+
thickness: number;
|
|
5837
5886
|
uniform: boolean;
|
|
5838
5887
|
width: number;
|
|
5839
5888
|
xRotation: number;
|
|
@@ -5858,6 +5907,8 @@ export interface ContiguousSelectionProperties {
|
|
|
5858
5907
|
export interface CuboidBrushShapeSettings {
|
|
5859
5908
|
depth: number;
|
|
5860
5909
|
height: number;
|
|
5910
|
+
hollow: boolean;
|
|
5911
|
+
thickness: number;
|
|
5861
5912
|
uniform: boolean;
|
|
5862
5913
|
width: number;
|
|
5863
5914
|
xRotation: number;
|
|
@@ -5952,7 +6003,9 @@ export interface CursorRay {
|
|
|
5952
6003
|
export interface CylinderBrushShapeSettings {
|
|
5953
6004
|
depth: number;
|
|
5954
6005
|
height: number;
|
|
6006
|
+
hollow: boolean;
|
|
5955
6007
|
radius: number;
|
|
6008
|
+
thickness: number;
|
|
5956
6009
|
uniform: boolean;
|
|
5957
6010
|
width: number;
|
|
5958
6011
|
xRotation: number;
|
|
@@ -5975,7 +6028,9 @@ export interface EditorStructureSearchOptions {
|
|
|
5975
6028
|
export interface EllipsoidBrushShapeSettings {
|
|
5976
6029
|
depth: number;
|
|
5977
6030
|
height: number;
|
|
6031
|
+
hollow: boolean;
|
|
5978
6032
|
radius: number;
|
|
6033
|
+
thickness: number;
|
|
5979
6034
|
uniform: boolean;
|
|
5980
6035
|
width: number;
|
|
5981
6036
|
xRotation: number;
|
|
@@ -7781,6 +7836,12 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
|
|
|
7781
7836
|
*
|
|
7782
7837
|
*/
|
|
7783
7838
|
readonly slotCount: number;
|
|
7839
|
+
/**
|
|
7840
|
+
* @remarks
|
|
7841
|
+
* View control pane for the list
|
|
7842
|
+
*
|
|
7843
|
+
*/
|
|
7844
|
+
readonly viewControlPane: IListPaneViewControlPane | undefined;
|
|
7784
7845
|
/**
|
|
7785
7846
|
* @remarks
|
|
7786
7847
|
* Current sorting type for the pane slots
|
|
@@ -7793,6 +7854,14 @@ export interface IListPanePropertyItem extends IPropertyItemBase, IPane {
|
|
|
7793
7854
|
*
|
|
7794
7855
|
*/
|
|
7795
7856
|
addSlot(params: ListPaneSlotCreationProps): IListPaneSlot;
|
|
7857
|
+
/**
|
|
7858
|
+
* @remarks
|
|
7859
|
+
* Creates a pane that displays view and filtering
|
|
7860
|
+
* configurations for the list if the parent container supports
|
|
7861
|
+
* it.
|
|
7862
|
+
*
|
|
7863
|
+
*/
|
|
7864
|
+
buildViewControl(options: IListPaneViewControlPaneOptions): IListPaneViewControlPane;
|
|
7796
7865
|
/**
|
|
7797
7866
|
* @remarks
|
|
7798
7867
|
* Finds the slot with the identifier.
|
|
@@ -8070,6 +8139,117 @@ export interface IListPaneTextEntry extends IListPaneEntry {
|
|
|
8070
8139
|
setValue(value: LocalizedString): void;
|
|
8071
8140
|
}
|
|
8072
8141
|
|
|
8142
|
+
/**
|
|
8143
|
+
* View control for a list pane to manage how slots are
|
|
8144
|
+
* displayed
|
|
8145
|
+
*/
|
|
8146
|
+
export interface IListPaneViewControlPane {
|
|
8147
|
+
/**
|
|
8148
|
+
* @remarks
|
|
8149
|
+
* Unique identifier
|
|
8150
|
+
*
|
|
8151
|
+
*/
|
|
8152
|
+
readonly id: string;
|
|
8153
|
+
/**
|
|
8154
|
+
* @remarks
|
|
8155
|
+
* Active state of the filter
|
|
8156
|
+
*
|
|
8157
|
+
*/
|
|
8158
|
+
readonly isFilterActive: boolean;
|
|
8159
|
+
/**
|
|
8160
|
+
* @remarks
|
|
8161
|
+
* Visible state of the pane
|
|
8162
|
+
*
|
|
8163
|
+
*/
|
|
8164
|
+
readonly visible: boolean;
|
|
8165
|
+
/**
|
|
8166
|
+
* @remarks
|
|
8167
|
+
* Returns the state of an existing action
|
|
8168
|
+
*
|
|
8169
|
+
* @param id
|
|
8170
|
+
* Identifier for the action
|
|
8171
|
+
*/
|
|
8172
|
+
getActionState(id: string): ListViewControlActionState | undefined;
|
|
8173
|
+
/**
|
|
8174
|
+
* @remarks
|
|
8175
|
+
* Updates enabled state of the existing action
|
|
8176
|
+
*
|
|
8177
|
+
* @param id
|
|
8178
|
+
* Identifier for the action
|
|
8179
|
+
* @param enabled
|
|
8180
|
+
* New action enabled state
|
|
8181
|
+
*/
|
|
8182
|
+
setActionEnabledState(id: string, enabled: boolean): void;
|
|
8183
|
+
/**
|
|
8184
|
+
* @remarks
|
|
8185
|
+
* Updates existing actions
|
|
8186
|
+
*
|
|
8187
|
+
* @param newActions
|
|
8188
|
+
* New actions
|
|
8189
|
+
*/
|
|
8190
|
+
setActionStates(newActions: ListViewControlAction[]): void;
|
|
8191
|
+
/**
|
|
8192
|
+
* @remarks
|
|
8193
|
+
* Updates visible state of the pane
|
|
8194
|
+
*
|
|
8195
|
+
* @param visible
|
|
8196
|
+
* New visibility state
|
|
8197
|
+
*/
|
|
8198
|
+
setVisible(visible: boolean): void;
|
|
8199
|
+
/**
|
|
8200
|
+
* @remarks
|
|
8201
|
+
* Updates action item state for the view control
|
|
8202
|
+
*
|
|
8203
|
+
* @param id
|
|
8204
|
+
* Identifier for the action
|
|
8205
|
+
* @param newState
|
|
8206
|
+
* New action state
|
|
8207
|
+
*/
|
|
8208
|
+
updateActionState(id: string, newState: ListViewControlActionState): void;
|
|
8209
|
+
}
|
|
8210
|
+
|
|
8211
|
+
export interface IListPaneViewControlPaneOptions {
|
|
8212
|
+
/**
|
|
8213
|
+
* @remarks
|
|
8214
|
+
* Default actions
|
|
8215
|
+
*
|
|
8216
|
+
*/
|
|
8217
|
+
actions?: ListViewControlAction[];
|
|
8218
|
+
/**
|
|
8219
|
+
* @remarks
|
|
8220
|
+
* Flags to determine visible filters. If undefined it will be
|
|
8221
|
+
* All.
|
|
8222
|
+
*
|
|
8223
|
+
*/
|
|
8224
|
+
filterFlags?: ListViewControlFilterFlags;
|
|
8225
|
+
/**
|
|
8226
|
+
* @remarks
|
|
8227
|
+
* This function will be called whenever user clicks an action
|
|
8228
|
+
*
|
|
8229
|
+
*/
|
|
8230
|
+
onActionClicked?: (id: string) => void;
|
|
8231
|
+
/**
|
|
8232
|
+
* @remarks
|
|
8233
|
+
* This function will be called whenever the filter is changed
|
|
8234
|
+
* by the user
|
|
8235
|
+
*
|
|
8236
|
+
*/
|
|
8237
|
+
onFilterChanged?: (visibleSlotIds: string[]) => void;
|
|
8238
|
+
/**
|
|
8239
|
+
* @remarks
|
|
8240
|
+
* Custom sort options. If undefined, list pane sort options
|
|
8241
|
+
* will be used.
|
|
8242
|
+
*
|
|
8243
|
+
*/
|
|
8244
|
+
sortOptions?: ListPaneViewSortType[];
|
|
8245
|
+
/**
|
|
8246
|
+
* @remarks
|
|
8247
|
+
* Initial visibility state. It undefined, it will be false.
|
|
8248
|
+
*
|
|
8249
|
+
*/
|
|
8250
|
+
visible?: boolean;
|
|
8251
|
+
}
|
|
8252
|
+
|
|
8073
8253
|
export interface IMenu {
|
|
8074
8254
|
/**
|
|
8075
8255
|
* @remarks
|
|
@@ -10601,6 +10781,8 @@ export interface ProjectExportOptions {
|
|
|
10601
10781
|
export interface PyramidBrushShapeSettings {
|
|
10602
10782
|
depth: number;
|
|
10603
10783
|
height: number;
|
|
10784
|
+
hollow: boolean;
|
|
10785
|
+
thickness: number;
|
|
10604
10786
|
uniform: boolean;
|
|
10605
10787
|
width: number;
|
|
10606
10788
|
xRotation: number;
|
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.
|
|
3
|
+
"version": "0.1.0-beta.1.26.10-preview.23",
|
|
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.
|
|
18
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.
|
|
17
|
+
"@minecraft/server": "^2.7.0-beta.1.26.10-preview.23",
|
|
18
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.23"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT"
|
|
21
21
|
}
|