@minecraft/server-editor 0.1.0-beta.1.21.130-preview.26 → 0.1.0-beta.1.21.130-preview.27
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 +87 -10
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -93,6 +93,11 @@ export enum BrushDirectionalPlacementMode {
|
|
|
93
93
|
Random3Axes = 14,
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
export enum BrushElevationMode {
|
|
97
|
+
Raise = 0,
|
|
98
|
+
Lower = 1,
|
|
99
|
+
}
|
|
100
|
+
|
|
96
101
|
/**
|
|
97
102
|
* The possible variants of a Button property item.
|
|
98
103
|
*/
|
|
@@ -1081,6 +1086,7 @@ export enum PaintMode {
|
|
|
1081
1086
|
Smooth = 2,
|
|
1082
1087
|
Roughen = 3,
|
|
1083
1088
|
Flatten = 4,
|
|
1089
|
+
Elevation = 5,
|
|
1084
1090
|
}
|
|
1085
1091
|
|
|
1086
1092
|
export enum Plane {
|
|
@@ -2183,6 +2189,30 @@ export class BrushShapeManager {
|
|
|
2183
2189
|
*
|
|
2184
2190
|
*/
|
|
2185
2191
|
setDirectionalPlacementMode(directionalPlacementMode: BrushDirectionalPlacementMode): void;
|
|
2192
|
+
/**
|
|
2193
|
+
* @remarks
|
|
2194
|
+
* This function can't be called in read-only mode.
|
|
2195
|
+
*
|
|
2196
|
+
*/
|
|
2197
|
+
setElevationBrushRadius(elevationBrushRadius: number): void;
|
|
2198
|
+
/**
|
|
2199
|
+
* @remarks
|
|
2200
|
+
* This function can't be called in read-only mode.
|
|
2201
|
+
*
|
|
2202
|
+
*/
|
|
2203
|
+
setElevationFalloff(elevationFalloff: number): void;
|
|
2204
|
+
/**
|
|
2205
|
+
* @remarks
|
|
2206
|
+
* This function can't be called in read-only mode.
|
|
2207
|
+
*
|
|
2208
|
+
*/
|
|
2209
|
+
setElevationMode(elevationMode: BrushElevationMode): void;
|
|
2210
|
+
/**
|
|
2211
|
+
* @remarks
|
|
2212
|
+
* This function can't be called in read-only mode.
|
|
2213
|
+
*
|
|
2214
|
+
*/
|
|
2215
|
+
setElevationSampleLayers(elevationSampleLayers: number): void;
|
|
2186
2216
|
/**
|
|
2187
2217
|
* @remarks
|
|
2188
2218
|
* This function can't be called in read-only mode.
|
|
@@ -2503,6 +2533,10 @@ export class Cursor {
|
|
|
2503
2533
|
* @throws This property can throw when used.
|
|
2504
2534
|
*/
|
|
2505
2535
|
readonly isVisible: boolean;
|
|
2536
|
+
/**
|
|
2537
|
+
* @throws This property can throw when used.
|
|
2538
|
+
*/
|
|
2539
|
+
readonly maxViewBlockDistance: number;
|
|
2506
2540
|
/**
|
|
2507
2541
|
* @remarks
|
|
2508
2542
|
* Get the world position of the 3D block cursor
|
|
@@ -3161,7 +3195,7 @@ export class Logger {
|
|
|
3161
3195
|
* The message string to send to the log window
|
|
3162
3196
|
* @throws This function can throw errors.
|
|
3163
3197
|
*/
|
|
3164
|
-
debug(message: string, properties?: LogProperties): void;
|
|
3198
|
+
debug(message: LocalizationEntry | string, properties?: LogProperties): void;
|
|
3165
3199
|
/**
|
|
3166
3200
|
* @remarks
|
|
3167
3201
|
* The error channel is generally used when the editor
|
|
@@ -3176,7 +3210,7 @@ export class Logger {
|
|
|
3176
3210
|
* The message string to send to the log window
|
|
3177
3211
|
* @throws This function can throw errors.
|
|
3178
3212
|
*/
|
|
3179
|
-
error(message: string, properties?: LogProperties): void;
|
|
3213
|
+
error(message: LocalizationEntry | string, properties?: LogProperties): void;
|
|
3180
3214
|
/**
|
|
3181
3215
|
* @remarks
|
|
3182
3216
|
* The info channel is intended to communicate general,
|
|
@@ -3189,7 +3223,7 @@ export class Logger {
|
|
|
3189
3223
|
* The message string to send to the log window
|
|
3190
3224
|
* @throws This function can throw errors.
|
|
3191
3225
|
*/
|
|
3192
|
-
info(message: string, properties?: LogProperties): void;
|
|
3226
|
+
info(message: LocalizationEntry | string, properties?: LogProperties): void;
|
|
3193
3227
|
/**
|
|
3194
3228
|
* @remarks
|
|
3195
3229
|
* The warning channel is intended to inform the user of
|
|
@@ -3203,7 +3237,7 @@ export class Logger {
|
|
|
3203
3237
|
* The message string to send to the log window
|
|
3204
3238
|
* @throws This function can throw errors.
|
|
3205
3239
|
*/
|
|
3206
|
-
warning(message: string, properties?: LogProperties): void;
|
|
3240
|
+
warning(message: LocalizationEntry | string, properties?: LogProperties): void;
|
|
3207
3241
|
}
|
|
3208
3242
|
|
|
3209
3243
|
/**
|
|
@@ -3589,6 +3623,30 @@ export class SelectionManager {
|
|
|
3589
3623
|
private constructor();
|
|
3590
3624
|
readonly entity: SelectionContainerEntity;
|
|
3591
3625
|
readonly volume: SelectionContainerVolume;
|
|
3626
|
+
/**
|
|
3627
|
+
* @remarks
|
|
3628
|
+
* This function can't be called in read-only mode.
|
|
3629
|
+
*
|
|
3630
|
+
*/
|
|
3631
|
+
deselectBlocks(blockIdentifier: string): Promise<number>;
|
|
3632
|
+
/**
|
|
3633
|
+
* @remarks
|
|
3634
|
+
* This function can't be called in read-only mode.
|
|
3635
|
+
*
|
|
3636
|
+
*/
|
|
3637
|
+
generateManifest(): Promise<SelectionManifestData>;
|
|
3638
|
+
/**
|
|
3639
|
+
* @remarks
|
|
3640
|
+
* This function can't be called in read-only mode.
|
|
3641
|
+
*
|
|
3642
|
+
*/
|
|
3643
|
+
getCurrentManifest(): SelectionManifestData | undefined;
|
|
3644
|
+
/**
|
|
3645
|
+
* @remarks
|
|
3646
|
+
* This function can't be called in read-only mode.
|
|
3647
|
+
*
|
|
3648
|
+
*/
|
|
3649
|
+
replaceBlocks(fromBlockIdentifier: string, toBlockIdentifier: string): Promise<number>;
|
|
3592
3650
|
}
|
|
3593
3651
|
|
|
3594
3652
|
/**
|
|
@@ -7621,7 +7679,7 @@ export interface IPlayerLogger {
|
|
|
7621
7679
|
* @param props
|
|
7622
7680
|
* Optional player log properties
|
|
7623
7681
|
*/
|
|
7624
|
-
debug(message:
|
|
7682
|
+
debug(message: LocalizedString, props?: IPlayerLoggerProperties): void;
|
|
7625
7683
|
/**
|
|
7626
7684
|
* @remarks
|
|
7627
7685
|
* Dispatch a player log message with Error log level
|
|
@@ -7631,7 +7689,7 @@ export interface IPlayerLogger {
|
|
|
7631
7689
|
* @param props
|
|
7632
7690
|
* Optional player log properties
|
|
7633
7691
|
*/
|
|
7634
|
-
error(message:
|
|
7692
|
+
error(message: LocalizedString, props?: IPlayerLoggerProperties): void;
|
|
7635
7693
|
/**
|
|
7636
7694
|
* @remarks
|
|
7637
7695
|
* Dispatch a player log message with Info log level
|
|
@@ -7641,7 +7699,7 @@ export interface IPlayerLogger {
|
|
|
7641
7699
|
* @param props
|
|
7642
7700
|
* Optional player log properties
|
|
7643
7701
|
*/
|
|
7644
|
-
info(message:
|
|
7702
|
+
info(message: LocalizedString, props?: IPlayerLoggerProperties): void;
|
|
7645
7703
|
/**
|
|
7646
7704
|
* @remarks
|
|
7647
7705
|
* Dispatch a player log message with Warning log level
|
|
@@ -7651,7 +7709,7 @@ export interface IPlayerLogger {
|
|
|
7651
7709
|
* @param props
|
|
7652
7710
|
* Optional player log properties
|
|
7653
7711
|
*/
|
|
7654
|
-
warning(message:
|
|
7712
|
+
warning(message: LocalizedString, props?: IPlayerLoggerProperties): void;
|
|
7655
7713
|
}
|
|
7656
7714
|
|
|
7657
7715
|
/**
|
|
@@ -7669,7 +7727,7 @@ export interface IPlayerLoggerProperties {
|
|
|
7669
7727
|
* A player log sub message for the toast channel
|
|
7670
7728
|
*
|
|
7671
7729
|
*/
|
|
7672
|
-
subMessage?:
|
|
7730
|
+
subMessage?: LocalizedString;
|
|
7673
7731
|
}
|
|
7674
7732
|
|
|
7675
7733
|
/**
|
|
@@ -8809,6 +8867,11 @@ export interface IVector3PropertyItemOptions extends IPropertyItemOptionsBase {
|
|
|
8809
8867
|
tooltip?: BasicTooltipContent;
|
|
8810
8868
|
}
|
|
8811
8869
|
|
|
8870
|
+
export interface LocalizationEntry {
|
|
8871
|
+
id: string;
|
|
8872
|
+
props?: string[];
|
|
8873
|
+
}
|
|
8874
|
+
|
|
8812
8875
|
/**
|
|
8813
8876
|
* A properties class for the global instance of the logger
|
|
8814
8877
|
* object.
|
|
@@ -8838,7 +8901,7 @@ export interface LogProperties {
|
|
|
8838
8901
|
* selected.
|
|
8839
8902
|
*
|
|
8840
8903
|
*/
|
|
8841
|
-
subMessage?: string;
|
|
8904
|
+
subMessage?: LocalizationEntry | string;
|
|
8842
8905
|
/**
|
|
8843
8906
|
* @remarks
|
|
8844
8907
|
* Add additional tags to the log message which can be used by
|
|
@@ -8942,6 +9005,20 @@ export interface QuickExtrudeProperties {
|
|
|
8942
9005
|
startingLocation?: minecraftserver.Vector3;
|
|
8943
9006
|
}
|
|
8944
9007
|
|
|
9008
|
+
export interface SelectionManifestData {
|
|
9009
|
+
entries: SelectionManifestEntry[];
|
|
9010
|
+
generationId: number;
|
|
9011
|
+
inProgress: boolean;
|
|
9012
|
+
processedBlocks: number;
|
|
9013
|
+
progress: number;
|
|
9014
|
+
totalBlocks: number;
|
|
9015
|
+
}
|
|
9016
|
+
|
|
9017
|
+
export interface SelectionManifestEntry {
|
|
9018
|
+
blockIdentifier: string;
|
|
9019
|
+
count: number;
|
|
9020
|
+
}
|
|
9021
|
+
|
|
8945
9022
|
export interface WeightedBlock {
|
|
8946
9023
|
block: minecraftserver.BlockType;
|
|
8947
9024
|
weight: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.21.130-preview.
|
|
3
|
+
"version": "0.1.0-beta.1.21.130-preview.27",
|
|
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.5.0-beta.1.21.130-preview.
|
|
18
|
-
"@minecraft/vanilla-data": ">=1.20.70 || 1.21.130-preview.
|
|
17
|
+
"@minecraft/server": "^2.5.0-beta.1.21.130-preview.27",
|
|
18
|
+
"@minecraft/vanilla-data": ">=1.20.70 || 1.21.130-preview.27"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT"
|
|
21
21
|
}
|