@minecraft/server-editor 0.1.0-beta.1.20.20-preview.22 → 0.1.0-beta.1.20.30-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.
- package/index.d.ts +104 -13
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* ```json
|
|
15
15
|
* {
|
|
16
16
|
* "module_name": "@minecraft/server-editor",
|
|
17
|
-
* "version": "0.1.0-beta.1.20.
|
|
17
|
+
* "version": "0.1.0-beta.1.20.30-preview.20"
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
@@ -569,6 +569,12 @@ export declare class BedrockEventSubscriptionCache {
|
|
|
569
569
|
| ((arg: minecraftserver.TripWireTripAfterEvent) => void)
|
|
570
570
|
| ((arg: minecraftserver.WeatherChangeAfterEvent) => void)
|
|
571
571
|
| ((arg: minecraftserver.WorldInitializeAfterEvent) => void);
|
|
572
|
+
/**
|
|
573
|
+
* @remarks
|
|
574
|
+
* Cleans up the set of internal registrations and
|
|
575
|
+
* subscriptions.
|
|
576
|
+
*
|
|
577
|
+
*/
|
|
572
578
|
teardown(): void;
|
|
573
579
|
}
|
|
574
580
|
|
|
@@ -595,6 +601,36 @@ export class ClipboardItem {
|
|
|
595
601
|
* @throws This function can throw errors.
|
|
596
602
|
*/
|
|
597
603
|
clear(): void;
|
|
604
|
+
/**
|
|
605
|
+
* @remarks
|
|
606
|
+
* Create a {@link @minecraft/server.CompoundBlockVolume}
|
|
607
|
+
* container which represents the occupied block volumes within
|
|
608
|
+
* the ClipboardItem.
|
|
609
|
+
* This function does not perform any write operations, and
|
|
610
|
+
* instead returns only a prediction of the volume area which
|
|
611
|
+
* would be affected as part of a write operation with a given
|
|
612
|
+
* set of write options.
|
|
613
|
+
*
|
|
614
|
+
* This function can't be called in read-only mode.
|
|
615
|
+
*
|
|
616
|
+
* @param location
|
|
617
|
+
* A world location to which the ClipboardItem may potentially
|
|
618
|
+
* be written (nothing is actually written as part of this
|
|
619
|
+
* operation)
|
|
620
|
+
* @param options
|
|
621
|
+
* An optional set of write parameters which govern how the
|
|
622
|
+
* ClipboardItem should be potentially applied to the world
|
|
623
|
+
* @returns
|
|
624
|
+
* A {@link @minecraft/server.CompoundBlockVolume} which
|
|
625
|
+
* represents the occupied block volumes within the
|
|
626
|
+
* ClipboardItem as they would be written to the world with the
|
|
627
|
+
* specified {@link ClipboardWriteOptions}
|
|
628
|
+
* @throws This function can throw errors.
|
|
629
|
+
*/
|
|
630
|
+
getPredictedWriteAsCompoundBlockVolume(
|
|
631
|
+
location: minecraftserver.Vector3,
|
|
632
|
+
options?: ClipboardWriteOptions,
|
|
633
|
+
): minecraftserver.CompoundBlockVolume;
|
|
598
634
|
/**
|
|
599
635
|
* @remarks
|
|
600
636
|
* Create a {@link Selection} container which represents the
|
|
@@ -1119,7 +1155,7 @@ export class Selection {
|
|
|
1119
1155
|
*
|
|
1120
1156
|
* @throws This function can throw errors.
|
|
1121
1157
|
*/
|
|
1122
|
-
getFillColor(): minecraftserver.
|
|
1158
|
+
getFillColor(): minecraftserver.RGBA;
|
|
1123
1159
|
/**
|
|
1124
1160
|
* @remarks
|
|
1125
1161
|
* Return the color of the on-screen selection container
|
|
@@ -1129,7 +1165,16 @@ export class Selection {
|
|
|
1129
1165
|
*
|
|
1130
1166
|
* @throws This function can throw errors.
|
|
1131
1167
|
*/
|
|
1132
|
-
getOutlineColor(): minecraftserver.
|
|
1168
|
+
getOutlineColor(): minecraftserver.RGBA;
|
|
1169
|
+
/**
|
|
1170
|
+
* @remarks
|
|
1171
|
+
* Get the origin of the CompoundBlockVolume that makes up the
|
|
1172
|
+
* block component part of selection
|
|
1173
|
+
*
|
|
1174
|
+
* This function can't be called in read-only mode.
|
|
1175
|
+
*
|
|
1176
|
+
*/
|
|
1177
|
+
getVolumeOrigin(): minecraftserver.Vector3;
|
|
1133
1178
|
/**
|
|
1134
1179
|
* @remarks
|
|
1135
1180
|
* Translate a selection by a given amount (this causes all of
|
|
@@ -1168,10 +1213,15 @@ export class Selection {
|
|
|
1168
1213
|
*
|
|
1169
1214
|
* This function can't be called in read-only mode.
|
|
1170
1215
|
*
|
|
1216
|
+
* @param forceRelativity
|
|
1217
|
+
* See the description for {@link
|
|
1218
|
+
* @minecraft-server/CompoundBlockVolume.peekLastVolume}
|
|
1171
1219
|
* @returns
|
|
1172
1220
|
* Returns undefined if the stack is empty
|
|
1173
1221
|
*/
|
|
1174
|
-
peekLastVolume(
|
|
1222
|
+
peekLastVolume(
|
|
1223
|
+
forceRelativity?: minecraftserver.CompoundBlockVolumePositionRelativity,
|
|
1224
|
+
): minecraftserver.CompoundBlockVolumeItem | undefined;
|
|
1175
1225
|
/**
|
|
1176
1226
|
* @remarks
|
|
1177
1227
|
* Remove the volume information that was last pushed to the
|
|
@@ -1204,11 +1254,16 @@ export class Selection {
|
|
|
1204
1254
|
*
|
|
1205
1255
|
* This function can't be called in read-only mode.
|
|
1206
1256
|
*
|
|
1207
|
-
* @param
|
|
1208
|
-
*
|
|
1257
|
+
* @param other
|
|
1258
|
+
* {@link @minecraft-server/CompoundBlockVolume} - set the
|
|
1259
|
+
* block component part of this selection to the specified
|
|
1260
|
+
* compound block volume. This will completely replace all
|
|
1261
|
+
* block volume definitions in the selection.
|
|
1262
|
+
* {@link @Selection} - replace the selection with the
|
|
1263
|
+
* specified selection
|
|
1209
1264
|
* @throws This function can throw errors.
|
|
1210
1265
|
*/
|
|
1211
|
-
set(
|
|
1266
|
+
set(other: minecraftserver.CompoundBlockVolume | Selection): void;
|
|
1212
1267
|
/**
|
|
1213
1268
|
* @remarks
|
|
1214
1269
|
* Set the color of the hull of the selection object if it is
|
|
@@ -1218,7 +1273,7 @@ export class Selection {
|
|
|
1218
1273
|
*
|
|
1219
1274
|
* @throws This function can throw errors.
|
|
1220
1275
|
*/
|
|
1221
|
-
setFillColor(color: minecraftserver.
|
|
1276
|
+
setFillColor(color: minecraftserver.RGBA): void;
|
|
1222
1277
|
/**
|
|
1223
1278
|
* @remarks
|
|
1224
1279
|
* Set the color of the outline around the selection object if
|
|
@@ -1228,7 +1283,7 @@ export class Selection {
|
|
|
1228
1283
|
*
|
|
1229
1284
|
* @throws This function can throw errors.
|
|
1230
1285
|
*/
|
|
1231
|
-
setOutlineColor(color: minecraftserver.
|
|
1286
|
+
setOutlineColor(color: minecraftserver.RGBA): void;
|
|
1232
1287
|
}
|
|
1233
1288
|
|
|
1234
1289
|
/**
|
|
@@ -1387,6 +1442,23 @@ export class TransactionManager {
|
|
|
1387
1442
|
* @throws This function can throw errors.
|
|
1388
1443
|
*/
|
|
1389
1444
|
trackBlockChangeArea(from: minecraftserver.Vector3, to: minecraftserver.Vector3): boolean;
|
|
1445
|
+
/**
|
|
1446
|
+
* @remarks
|
|
1447
|
+
* Begin tracking block changes in an area defined by a {@link
|
|
1448
|
+
* @minecraft-server/CompoundBlockVolume}. These will be added
|
|
1449
|
+
* to a pending changes list.
|
|
1450
|
+
* The pending list will be added to the open transaction
|
|
1451
|
+
* record when a commit has been issued.
|
|
1452
|
+
*
|
|
1453
|
+
* This function can't be called in read-only mode.
|
|
1454
|
+
*
|
|
1455
|
+
* @param compoundBlockVolume
|
|
1456
|
+
* {@link @minecraft-server/CompoundBlockVolume} to track.
|
|
1457
|
+
* Only non-void block locations will be tracked -- any changes
|
|
1458
|
+
* falling into a void/negative space will not be tracked
|
|
1459
|
+
* @throws This function can throw errors.
|
|
1460
|
+
*/
|
|
1461
|
+
trackBlockChangeCompoundBlockVolume(compoundBlockVolume: minecraftserver.CompoundBlockVolume): boolean;
|
|
1390
1462
|
/**
|
|
1391
1463
|
* @remarks
|
|
1392
1464
|
* Begin tracking block changes in a list of specified block
|
|
@@ -1544,7 +1616,7 @@ export interface CursorProperties {
|
|
|
1544
1616
|
* cursor object outline
|
|
1545
1617
|
*
|
|
1546
1618
|
*/
|
|
1547
|
-
outlineColor?: minecraftserver.
|
|
1619
|
+
outlineColor?: minecraftserver.RGBA;
|
|
1548
1620
|
/**
|
|
1549
1621
|
* @remarks
|
|
1550
1622
|
* An enum representing the cursor target mode
|
|
@@ -1653,7 +1725,7 @@ export interface ActionManager {
|
|
|
1653
1725
|
export interface BuiltInUIManager {
|
|
1654
1726
|
/**
|
|
1655
1727
|
* @remarks
|
|
1656
|
-
* Navigates to the documentation site
|
|
1728
|
+
* Navigates to the documentation site.
|
|
1657
1729
|
*
|
|
1658
1730
|
*/
|
|
1659
1731
|
navigateToDocumentation(): void;
|
|
@@ -1690,12 +1762,19 @@ export interface BuiltInUIManager {
|
|
|
1690
1762
|
}
|
|
1691
1763
|
|
|
1692
1764
|
/**
|
|
1693
|
-
*
|
|
1694
|
-
* clean up handlers
|
|
1765
|
+
* An event that can be subscribed to. You can use the token,
|
|
1766
|
+
* returned from the subscribe method, to clean up handlers.
|
|
1695
1767
|
*/
|
|
1696
1768
|
export declare interface EventSink<T> {
|
|
1697
1769
|
/**
|
|
1698
1770
|
* @remarks
|
|
1771
|
+
* Subscribes an event handler to a particular subscription.
|
|
1772
|
+
*
|
|
1773
|
+
* @param handler
|
|
1774
|
+
* Handler function to subscribe with.
|
|
1775
|
+
* @returns
|
|
1776
|
+
* An event handler subscription token that can be used to
|
|
1777
|
+
* unsubscribe and clean-up handlers.
|
|
1699
1778
|
*/
|
|
1700
1779
|
subscribe(handler: EventHandler<T>): IEventToken;
|
|
1701
1780
|
}
|
|
@@ -1706,6 +1785,8 @@ export declare interface EventSink<T> {
|
|
|
1706
1785
|
export interface IDisposable {
|
|
1707
1786
|
/**
|
|
1708
1787
|
* @remarks
|
|
1788
|
+
* Initiates the teardown and cleanup of this disposable item.
|
|
1789
|
+
*
|
|
1709
1790
|
*/
|
|
1710
1791
|
teardown(): void;
|
|
1711
1792
|
}
|
|
@@ -2247,7 +2328,17 @@ export interface IPropertyPaneOptions {
|
|
|
2247
2328
|
* the extension manager
|
|
2248
2329
|
*/
|
|
2249
2330
|
export interface IRegisterExtensionOptionalParameters {
|
|
2331
|
+
/**
|
|
2332
|
+
* @remarks
|
|
2333
|
+
* Description of the extension.
|
|
2334
|
+
*
|
|
2335
|
+
*/
|
|
2250
2336
|
description?: string;
|
|
2337
|
+
/**
|
|
2338
|
+
* @remarks
|
|
2339
|
+
* Additional notes and description of the extension.
|
|
2340
|
+
*
|
|
2341
|
+
*/
|
|
2251
2342
|
notes?: string;
|
|
2252
2343
|
}
|
|
2253
2344
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-editor",
|
|
3
|
-
"version": "0.1.0-beta.1.20.
|
|
3
|
+
"version": "0.1.0-beta.1.20.30-preview.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server": "^1.
|
|
16
|
+
"@minecraft/server": "^1.6.0-beta.1.20.30-preview.20"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|