@minecraft/server 1.8.0-beta.1.20.50-preview.24 → 1.8.0-beta.1.20.50-stable
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 +144 -71
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* ```json
|
|
16
16
|
* {
|
|
17
17
|
* "module_name": "@minecraft/server",
|
|
18
|
-
* "version": "1.
|
|
18
|
+
* "version": "1.7.0"
|
|
19
19
|
* }
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -119,11 +119,37 @@ export enum CompoundBlockVolumePositionRelativity {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @beta
|
|
122
|
+
* An enumeration for the various difficulty levels of
|
|
123
|
+
* Minecraft.
|
|
122
124
|
*/
|
|
123
125
|
export enum Difficulty {
|
|
126
|
+
/**
|
|
127
|
+
* @beta
|
|
128
|
+
* @remarks
|
|
129
|
+
* Peaceful difficulty level.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
124
132
|
Peaceful = 0,
|
|
133
|
+
/**
|
|
134
|
+
* @beta
|
|
135
|
+
* @remarks
|
|
136
|
+
* Easy difficulty level.
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
125
139
|
Easy = 1,
|
|
140
|
+
/**
|
|
141
|
+
* @beta
|
|
142
|
+
* @remarks
|
|
143
|
+
* Normal difficulty level.
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
126
146
|
Normal = 2,
|
|
147
|
+
/**
|
|
148
|
+
* @beta
|
|
149
|
+
* @remarks
|
|
150
|
+
* Hard difficulty level.
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
127
153
|
Hard = 3,
|
|
128
154
|
}
|
|
129
155
|
|
|
@@ -640,11 +666,16 @@ export enum EntityInitializationCause {
|
|
|
640
666
|
Born = 'Born',
|
|
641
667
|
/**
|
|
642
668
|
* @remarks
|
|
643
|
-
* Case when an entity is created by an event, e.g.,
|
|
644
|
-
* trader spawning llamas.
|
|
669
|
+
* Case when an entity is created by an event, e.g., a
|
|
670
|
+
* Wandering trader spawning llamas.
|
|
645
671
|
*
|
|
646
672
|
*/
|
|
647
673
|
Event = 'Event',
|
|
674
|
+
/**
|
|
675
|
+
* @remarks
|
|
676
|
+
* Case when an entity is loaded into the world.
|
|
677
|
+
*
|
|
678
|
+
*/
|
|
648
679
|
Loaded = 'Loaded',
|
|
649
680
|
/**
|
|
650
681
|
* @remarks
|
|
@@ -1021,11 +1052,47 @@ export enum SignSide {
|
|
|
1021
1052
|
* day.
|
|
1022
1053
|
*/
|
|
1023
1054
|
export enum TimeOfDay {
|
|
1055
|
+
/**
|
|
1056
|
+
* @remarks
|
|
1057
|
+
* Sets the time to the start of the day, which is time of the
|
|
1058
|
+
* day 1,000 (or the equivalent of 7am) in Minecraft.
|
|
1059
|
+
*
|
|
1060
|
+
*/
|
|
1024
1061
|
Day = 1000,
|
|
1062
|
+
/**
|
|
1063
|
+
* @remarks
|
|
1064
|
+
* Sets the time to noon, which is time of the day 6,000 in
|
|
1065
|
+
* Minecraft.
|
|
1066
|
+
*
|
|
1067
|
+
*/
|
|
1025
1068
|
Noon = 6000,
|
|
1069
|
+
/**
|
|
1070
|
+
* @remarks
|
|
1071
|
+
* Sets the time to sunset, which is time of the day 12,000 (or
|
|
1072
|
+
* the equivalent of 6pm) in Minecraft.
|
|
1073
|
+
*
|
|
1074
|
+
*/
|
|
1026
1075
|
Sunset = 12000,
|
|
1076
|
+
/**
|
|
1077
|
+
* @remarks
|
|
1078
|
+
* Sets the time to night, which is time of the day 13,000 (or
|
|
1079
|
+
* the equivalent of 7:00pm) in Minecraft.
|
|
1080
|
+
*
|
|
1081
|
+
*/
|
|
1027
1082
|
Night = 13000,
|
|
1083
|
+
/**
|
|
1084
|
+
* @remarks
|
|
1085
|
+
* Sets the time to midnight, which is time of the day 18,000
|
|
1086
|
+
* (or the equivalent of 12:00am) in Minecraft.
|
|
1087
|
+
*
|
|
1088
|
+
*/
|
|
1028
1089
|
Midnight = 18000,
|
|
1090
|
+
/**
|
|
1091
|
+
* @remarks
|
|
1092
|
+
* Sets the time to sunrise, which is time of the day 23,000
|
|
1093
|
+
* (or the equivalent of 5am) in Minecraft.
|
|
1094
|
+
*
|
|
1095
|
+
*/
|
|
1029
1096
|
Sunrise = 23000,
|
|
1030
1097
|
}
|
|
1031
1098
|
|
|
@@ -1370,7 +1437,6 @@ export class Block {
|
|
|
1370
1437
|
*/
|
|
1371
1438
|
readonly z: number;
|
|
1372
1439
|
/**
|
|
1373
|
-
* @beta
|
|
1374
1440
|
* @remarks
|
|
1375
1441
|
* Returns the {@link Block} above this block (positive in the
|
|
1376
1442
|
* Y direction).
|
|
@@ -1385,7 +1451,6 @@ export class Block {
|
|
|
1385
1451
|
*/
|
|
1386
1452
|
above(steps?: number): Block | undefined;
|
|
1387
1453
|
/**
|
|
1388
|
-
* @beta
|
|
1389
1454
|
* @remarks
|
|
1390
1455
|
* Returns the {@link Block} below this block (negative in the
|
|
1391
1456
|
* Y direction).
|
|
@@ -1400,7 +1465,6 @@ export class Block {
|
|
|
1400
1465
|
*/
|
|
1401
1466
|
below(steps?: number): Block | undefined;
|
|
1402
1467
|
/**
|
|
1403
|
-
* @beta
|
|
1404
1468
|
* @remarks
|
|
1405
1469
|
* Returns the {@link @minecraft/server.Location} of the center
|
|
1406
1470
|
* of this block on the X and Z axis.
|
|
@@ -1432,7 +1496,6 @@ export class Block {
|
|
|
1432
1496
|
*/
|
|
1433
1497
|
canPlace(blockToPlace: BlockPermutation | BlockType | string, faceToPlaceOn?: Direction): boolean;
|
|
1434
1498
|
/**
|
|
1435
|
-
* @beta
|
|
1436
1499
|
* @remarks
|
|
1437
1500
|
* Returns the {@link @minecraft/server.Location} of the center
|
|
1438
1501
|
* of this block on the X, Y, and Z axis.
|
|
@@ -1440,7 +1503,6 @@ export class Block {
|
|
|
1440
1503
|
*/
|
|
1441
1504
|
center(): Vector3;
|
|
1442
1505
|
/**
|
|
1443
|
-
* @beta
|
|
1444
1506
|
* @remarks
|
|
1445
1507
|
* Returns the {@link Block} to the east of this block
|
|
1446
1508
|
* (positive in the X direction).
|
|
@@ -1566,7 +1628,6 @@ export class Block {
|
|
|
1566
1628
|
*/
|
|
1567
1629
|
isValid(): boolean;
|
|
1568
1630
|
/**
|
|
1569
|
-
* @beta
|
|
1570
1631
|
* @remarks
|
|
1571
1632
|
* Returns the {@link Block} to the north of this block
|
|
1572
1633
|
* (negative in the Z direction).
|
|
@@ -1581,7 +1642,16 @@ export class Block {
|
|
|
1581
1642
|
*/
|
|
1582
1643
|
north(steps?: number): Block | undefined;
|
|
1583
1644
|
/**
|
|
1584
|
-
* @
|
|
1645
|
+
* @remarks
|
|
1646
|
+
* Returns a block at an offset relative vector to this block.
|
|
1647
|
+
*
|
|
1648
|
+
* @param offset
|
|
1649
|
+
* The offset vector. For example, an offset of 0, 1, 0 will
|
|
1650
|
+
* return the block above the current block.
|
|
1651
|
+
* @returns
|
|
1652
|
+
* Block at the specified offset, or undefined if that block
|
|
1653
|
+
* could not be retrieved (for example, the block and its
|
|
1654
|
+
* relative chunk is not loaded yet.)
|
|
1585
1655
|
* @throws This function can throw errors.
|
|
1586
1656
|
*
|
|
1587
1657
|
* {@link LocationInUnloadedChunkError}
|
|
@@ -1626,7 +1696,6 @@ export class Block {
|
|
|
1626
1696
|
*/
|
|
1627
1697
|
setType(blockType: BlockType | string): void;
|
|
1628
1698
|
/**
|
|
1629
|
-
* @beta
|
|
1630
1699
|
* @remarks
|
|
1631
1700
|
* Returns the {@link Block} to the south of this block
|
|
1632
1701
|
* (positive in the Z direction).
|
|
@@ -1662,7 +1731,6 @@ export class Block {
|
|
|
1662
1731
|
*/
|
|
1663
1732
|
trySetPermutation(permutation: BlockPermutation): boolean;
|
|
1664
1733
|
/**
|
|
1665
|
-
* @beta
|
|
1666
1734
|
* @remarks
|
|
1667
1735
|
* Returns the {@link Block} to the west of this block
|
|
1668
1736
|
* (negative in the X direction).
|
|
@@ -2790,9 +2858,7 @@ export class ChatSendAfterEvent {
|
|
|
2790
2858
|
private constructor();
|
|
2791
2859
|
/**
|
|
2792
2860
|
* @remarks
|
|
2793
|
-
* Message that is being broadcast.
|
|
2794
|
-
* handler, _message_ can be updated with edits before the
|
|
2795
|
-
* message is displayed to players.
|
|
2861
|
+
* Message that is being broadcast.
|
|
2796
2862
|
*
|
|
2797
2863
|
*/
|
|
2798
2864
|
message: string;
|
|
@@ -2802,20 +2868,7 @@ export class ChatSendAfterEvent {
|
|
|
2802
2868
|
*
|
|
2803
2869
|
*/
|
|
2804
2870
|
sender: Player;
|
|
2805
|
-
/**
|
|
2806
|
-
* @remarks
|
|
2807
|
-
* If true, this message is directly targeted to one or more
|
|
2808
|
-
* players (i.e., is not broadcast.)
|
|
2809
|
-
*
|
|
2810
|
-
*/
|
|
2811
2871
|
sendToTargets: boolean;
|
|
2812
|
-
/**
|
|
2813
|
-
* @remarks
|
|
2814
|
-
* List of players that will receive this message.
|
|
2815
|
-
*
|
|
2816
|
-
* @returns
|
|
2817
|
-
* List of player objects.
|
|
2818
|
-
*/
|
|
2819
2872
|
getTargets(): Player[];
|
|
2820
2873
|
}
|
|
2821
2874
|
|
|
@@ -2873,14 +2926,6 @@ export class ChatSendBeforeEvent extends ChatSendAfterEvent {
|
|
|
2873
2926
|
*
|
|
2874
2927
|
*/
|
|
2875
2928
|
cancel: boolean;
|
|
2876
|
-
/**
|
|
2877
|
-
* @remarks
|
|
2878
|
-
* Sets an updated list of players that will receive this
|
|
2879
|
-
* message.
|
|
2880
|
-
*
|
|
2881
|
-
* @param players
|
|
2882
|
-
* Updated array of players that should receive this message.
|
|
2883
|
-
*/
|
|
2884
2929
|
setTargets(players: Player[]): void;
|
|
2885
2930
|
}
|
|
2886
2931
|
|
|
@@ -3757,7 +3802,6 @@ export class DataDrivenEntityTriggerBeforeEventSignal {
|
|
|
3757
3802
|
export class Dimension {
|
|
3758
3803
|
private constructor();
|
|
3759
3804
|
/**
|
|
3760
|
-
* @beta
|
|
3761
3805
|
* @remarks
|
|
3762
3806
|
* Height range of the dimension.
|
|
3763
3807
|
*
|
|
@@ -3991,8 +4035,13 @@ export class Dimension {
|
|
|
3991
4035
|
/**
|
|
3992
4036
|
* @beta
|
|
3993
4037
|
* @remarks
|
|
4038
|
+
* Returns the current weather.
|
|
4039
|
+
*
|
|
3994
4040
|
* This function can't be called in read-only mode.
|
|
3995
4041
|
*
|
|
4042
|
+
* @returns
|
|
4043
|
+
* Returns a WeatherType that explains the broad category of
|
|
4044
|
+
* weather that is currently going on.
|
|
3996
4045
|
*/
|
|
3997
4046
|
getWeather(): WeatherType;
|
|
3998
4047
|
/**
|
|
@@ -4349,6 +4398,11 @@ export class EffectAddBeforeEvent {
|
|
|
4349
4398
|
*
|
|
4350
4399
|
*/
|
|
4351
4400
|
cancel: boolean;
|
|
4401
|
+
/**
|
|
4402
|
+
* @remarks
|
|
4403
|
+
* Effect duration.
|
|
4404
|
+
*
|
|
4405
|
+
*/
|
|
4352
4406
|
duration: number;
|
|
4353
4407
|
/**
|
|
4354
4408
|
* @remarks
|
|
@@ -4951,7 +5005,10 @@ export class Entity {
|
|
|
4951
5005
|
*/
|
|
4952
5006
|
applyKnockback(directionX: number, directionZ: number, horizontalStrength: number, verticalStrength: number): void;
|
|
4953
5007
|
/**
|
|
4954
|
-
* @
|
|
5008
|
+
* @remarks
|
|
5009
|
+
* Clears all dynamic properties that have been set on this
|
|
5010
|
+
* entity.
|
|
5011
|
+
*
|
|
4955
5012
|
* @throws This function can throw errors.
|
|
4956
5013
|
*/
|
|
4957
5014
|
clearDynamicProperties(): void;
|
|
@@ -5057,7 +5114,6 @@ export class Entity {
|
|
|
5057
5114
|
*/
|
|
5058
5115
|
getComponents(): EntityComponent[];
|
|
5059
5116
|
/**
|
|
5060
|
-
* @beta
|
|
5061
5117
|
* @remarks
|
|
5062
5118
|
* Returns a property value.
|
|
5063
5119
|
*
|
|
@@ -5070,12 +5126,24 @@ export class Entity {
|
|
|
5070
5126
|
*/
|
|
5071
5127
|
getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined;
|
|
5072
5128
|
/**
|
|
5073
|
-
* @
|
|
5129
|
+
* @remarks
|
|
5130
|
+
* Returns the available set of dynamic property identifiers
|
|
5131
|
+
* that have been used on this entity.
|
|
5132
|
+
*
|
|
5133
|
+
* @returns
|
|
5134
|
+
* A string array of the dynamic properties set on this entity.
|
|
5074
5135
|
* @throws This function can throw errors.
|
|
5075
5136
|
*/
|
|
5076
5137
|
getDynamicPropertyIds(): string[];
|
|
5077
5138
|
/**
|
|
5078
|
-
* @
|
|
5139
|
+
* @remarks
|
|
5140
|
+
* Returns the total size, in bytes, of all the dynamic
|
|
5141
|
+
* properties that are currently stored for this entity. This
|
|
5142
|
+
* can be useful for diagnosing performance warning signs - if,
|
|
5143
|
+
* for example, an entity has many megabytes of associated
|
|
5144
|
+
* dynamic properties, it may be slow to load on various
|
|
5145
|
+
* devices.
|
|
5146
|
+
*
|
|
5079
5147
|
* @throws This function can throw errors.
|
|
5080
5148
|
*/
|
|
5081
5149
|
getDynamicPropertyTotalByteCount(): number;
|
|
@@ -5256,7 +5324,6 @@ export class Entity {
|
|
|
5256
5324
|
*/
|
|
5257
5325
|
kill(): boolean;
|
|
5258
5326
|
/**
|
|
5259
|
-
* @beta
|
|
5260
5327
|
* @remarks
|
|
5261
5328
|
* Matches the entity against the passed in options. Uses the
|
|
5262
5329
|
* location of the entity for matching if the location is not
|
|
@@ -5284,7 +5351,6 @@ export class Entity {
|
|
|
5284
5351
|
*/
|
|
5285
5352
|
playAnimation(animationName: string, options?: PlayAnimationOptions): void;
|
|
5286
5353
|
/**
|
|
5287
|
-
* @beta
|
|
5288
5354
|
* @remarks
|
|
5289
5355
|
* Immediately removes the entity from the world. The removed
|
|
5290
5356
|
* entity will not perform a death animation or drop loot upon
|
|
@@ -5381,7 +5447,6 @@ export class Entity {
|
|
|
5381
5447
|
*/
|
|
5382
5448
|
runCommandAsync(commandString: string): Promise<CommandResult>;
|
|
5383
5449
|
/**
|
|
5384
|
-
* @beta
|
|
5385
5450
|
* @remarks
|
|
5386
5451
|
* Sets a specified property to a value.
|
|
5387
5452
|
*
|
|
@@ -10052,7 +10117,6 @@ export class PlayerDimensionChangeAfterEventSignal {
|
|
|
10052
10117
|
}
|
|
10053
10118
|
|
|
10054
10119
|
/**
|
|
10055
|
-
* @beta
|
|
10056
10120
|
* Contains information regarding an event after a player
|
|
10057
10121
|
* interacts with a block.
|
|
10058
10122
|
*/
|
|
@@ -10093,7 +10157,6 @@ export class PlayerInteractWithBlockAfterEvent {
|
|
|
10093
10157
|
}
|
|
10094
10158
|
|
|
10095
10159
|
/**
|
|
10096
|
-
* @beta
|
|
10097
10160
|
* Manages callbacks that are connected to after a player
|
|
10098
10161
|
* interacts with a block.
|
|
10099
10162
|
*/
|
|
@@ -10123,7 +10186,6 @@ export class PlayerInteractWithBlockAfterEventSignal {
|
|
|
10123
10186
|
}
|
|
10124
10187
|
|
|
10125
10188
|
/**
|
|
10126
|
-
* @beta
|
|
10127
10189
|
* Contains information regarding an event before a player
|
|
10128
10190
|
* interacts with a block.
|
|
10129
10191
|
*/
|
|
@@ -10170,7 +10232,6 @@ export class PlayerInteractWithBlockBeforeEvent {
|
|
|
10170
10232
|
}
|
|
10171
10233
|
|
|
10172
10234
|
/**
|
|
10173
|
-
* @beta
|
|
10174
10235
|
* Manages callbacks that are connected to before a player
|
|
10175
10236
|
* interacts with a block.
|
|
10176
10237
|
*/
|
|
@@ -10200,7 +10261,6 @@ export class PlayerInteractWithBlockBeforeEventSignal {
|
|
|
10200
10261
|
}
|
|
10201
10262
|
|
|
10202
10263
|
/**
|
|
10203
|
-
* @beta
|
|
10204
10264
|
* Contains information regarding an event after a player
|
|
10205
10265
|
* interacts with an entity.
|
|
10206
10266
|
*/
|
|
@@ -10228,7 +10288,6 @@ export class PlayerInteractWithEntityAfterEvent {
|
|
|
10228
10288
|
}
|
|
10229
10289
|
|
|
10230
10290
|
/**
|
|
10231
|
-
* @beta
|
|
10232
10291
|
* Manages callbacks that are connected to after a player
|
|
10233
10292
|
* interacts with an entity.
|
|
10234
10293
|
*/
|
|
@@ -10258,7 +10317,6 @@ export class PlayerInteractWithEntityAfterEventSignal {
|
|
|
10258
10317
|
}
|
|
10259
10318
|
|
|
10260
10319
|
/**
|
|
10261
|
-
* @beta
|
|
10262
10320
|
* Contains information regarding an event before a player
|
|
10263
10321
|
* interacts with an entity.
|
|
10264
10322
|
*/
|
|
@@ -10292,7 +10350,6 @@ export class PlayerInteractWithEntityBeforeEvent {
|
|
|
10292
10350
|
}
|
|
10293
10351
|
|
|
10294
10352
|
/**
|
|
10295
|
-
* @beta
|
|
10296
10353
|
* Manages callbacks that are connected to before a player
|
|
10297
10354
|
* interacts with an entity.
|
|
10298
10355
|
*/
|
|
@@ -10408,17 +10465,11 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
|
|
|
10408
10465
|
private constructor();
|
|
10409
10466
|
}
|
|
10410
10467
|
|
|
10411
|
-
/**
|
|
10412
|
-
* @beta
|
|
10413
|
-
*/
|
|
10414
10468
|
export class PlayerLeaveBeforeEvent {
|
|
10415
10469
|
private constructor();
|
|
10416
10470
|
readonly player: Player;
|
|
10417
10471
|
}
|
|
10418
10472
|
|
|
10419
|
-
/**
|
|
10420
|
-
* @beta
|
|
10421
|
-
*/
|
|
10422
10473
|
export class PlayerLeaveBeforeEventSignal {
|
|
10423
10474
|
private constructor();
|
|
10424
10475
|
/**
|
|
@@ -11898,7 +11949,10 @@ export class World {
|
|
|
11898
11949
|
*/
|
|
11899
11950
|
broadcastClientMessage(id: string, value: string): void;
|
|
11900
11951
|
/**
|
|
11901
|
-
* @
|
|
11952
|
+
* @remarks
|
|
11953
|
+
* Clears the set of dynamic properties declared for this
|
|
11954
|
+
* behavior pack within the world.
|
|
11955
|
+
*
|
|
11902
11956
|
*/
|
|
11903
11957
|
clearDynamicProperties(): void;
|
|
11904
11958
|
/**
|
|
@@ -11947,7 +12001,6 @@ export class World {
|
|
|
11947
12001
|
*/
|
|
11948
12002
|
getDimension(dimensionId: string): Dimension;
|
|
11949
12003
|
/**
|
|
11950
|
-
* @beta
|
|
11951
12004
|
* @remarks
|
|
11952
12005
|
* Returns a property value.
|
|
11953
12006
|
*
|
|
@@ -12014,15 +12067,23 @@ export class World {
|
|
|
12014
12067
|
*/
|
|
12015
12068
|
getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined;
|
|
12016
12069
|
/**
|
|
12017
|
-
* @
|
|
12070
|
+
* @remarks
|
|
12071
|
+
* Gets a set of dynamic property identifiers that have been
|
|
12072
|
+
* set in this world.
|
|
12073
|
+
*
|
|
12074
|
+
* @returns
|
|
12075
|
+
* A string array of active dynamic property identifiers.
|
|
12018
12076
|
*/
|
|
12019
12077
|
getDynamicPropertyIds(): string[];
|
|
12020
12078
|
/**
|
|
12021
|
-
* @
|
|
12079
|
+
* @remarks
|
|
12080
|
+
* Gets the total byte count of dynamic properties. This could
|
|
12081
|
+
* potentially be used for your own analytics to ensure you're
|
|
12082
|
+
* not storing gigantic sets of dynamic properties.
|
|
12083
|
+
*
|
|
12022
12084
|
*/
|
|
12023
12085
|
getDynamicPropertyTotalByteCount(): number;
|
|
12024
12086
|
/**
|
|
12025
|
-
* @beta
|
|
12026
12087
|
* @remarks
|
|
12027
12088
|
* Returns an entity based on the provided id.
|
|
12028
12089
|
*
|
|
@@ -12215,7 +12276,6 @@ export class World {
|
|
|
12215
12276
|
*/
|
|
12216
12277
|
setDefaultSpawnLocation(spawnLocation: Vector3): void;
|
|
12217
12278
|
/**
|
|
12218
|
-
* @beta
|
|
12219
12279
|
* @remarks
|
|
12220
12280
|
* Sets a specified property to a value.
|
|
12221
12281
|
*
|
|
@@ -12334,11 +12394,6 @@ export class WorldAfterEvents {
|
|
|
12334
12394
|
readonly chatSend: ChatSendAfterEventSignal;
|
|
12335
12395
|
/**
|
|
12336
12396
|
* @beta
|
|
12337
|
-
* @remarks
|
|
12338
|
-
* This event is fired when an entity event has been triggered
|
|
12339
|
-
* that will update the component definition state of an
|
|
12340
|
-
* entity.
|
|
12341
|
-
*
|
|
12342
12397
|
*/
|
|
12343
12398
|
readonly dataDrivenEntityTriggerEvent: DataDrivenEntityTriggerAfterEventSignal;
|
|
12344
12399
|
/**
|
|
@@ -12509,10 +12564,16 @@ export class WorldAfterEvents {
|
|
|
12509
12564
|
readonly playerDimensionChange: PlayerDimensionChangeAfterEventSignal;
|
|
12510
12565
|
/**
|
|
12511
12566
|
* @beta
|
|
12567
|
+
* @remarks
|
|
12568
|
+
* An event for when a player interacts with a block.
|
|
12569
|
+
*
|
|
12512
12570
|
*/
|
|
12513
12571
|
readonly playerInteractWithBlock: PlayerInteractWithBlockAfterEventSignal;
|
|
12514
12572
|
/**
|
|
12515
12573
|
* @beta
|
|
12574
|
+
* @remarks
|
|
12575
|
+
* This event fires when a player interacts with an entity.
|
|
12576
|
+
*
|
|
12516
12577
|
*/
|
|
12517
12578
|
readonly playerInteractWithEntity: PlayerInteractWithEntityAfterEventSignal;
|
|
12518
12579
|
/**
|
|
@@ -12687,14 +12748,22 @@ export class WorldBeforeEvents {
|
|
|
12687
12748
|
readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal;
|
|
12688
12749
|
/**
|
|
12689
12750
|
* @beta
|
|
12751
|
+
* @remarks
|
|
12752
|
+
* Fires before a player interacts with a block.
|
|
12753
|
+
*
|
|
12690
12754
|
*/
|
|
12691
12755
|
readonly playerInteractWithBlock: PlayerInteractWithBlockBeforeEventSignal;
|
|
12692
12756
|
/**
|
|
12693
12757
|
* @beta
|
|
12758
|
+
* @remarks
|
|
12759
|
+
* Fires before a player interacts with an entity.
|
|
12760
|
+
*
|
|
12694
12761
|
*/
|
|
12695
12762
|
readonly playerInteractWithEntity: PlayerInteractWithEntityBeforeEventSignal;
|
|
12696
12763
|
/**
|
|
12697
|
-
* @
|
|
12764
|
+
* @remarks
|
|
12765
|
+
* Fires when a player leaves the game.
|
|
12766
|
+
*
|
|
12698
12767
|
*/
|
|
12699
12768
|
readonly playerLeave: PlayerLeaveBeforeEventSignal;
|
|
12700
12769
|
/**
|
|
@@ -12942,6 +13011,11 @@ export interface BoundingBox {
|
|
|
12942
13011
|
}
|
|
12943
13012
|
|
|
12944
13013
|
export interface CameraDefaultOptions {
|
|
13014
|
+
/**
|
|
13015
|
+
* @remarks
|
|
13016
|
+
* Sets a set of easing options for the camera.
|
|
13017
|
+
*
|
|
13018
|
+
*/
|
|
12945
13019
|
easeOptions: CameraEaseOptions;
|
|
12946
13020
|
}
|
|
12947
13021
|
|
|
@@ -13952,7 +14026,6 @@ export const MoonPhaseCount = 8;
|
|
|
13952
14026
|
*/
|
|
13953
14027
|
export const TicksPerDay = 24000;
|
|
13954
14028
|
/**
|
|
13955
|
-
* @beta
|
|
13956
14029
|
* @remarks
|
|
13957
14030
|
* How many times the server ticks per second of real time.
|
|
13958
14031
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "1.8.0-beta.1.20.50-
|
|
3
|
+
"version": "1.8.0-beta.1.20.50-stable",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/common": "^1.1.0
|
|
16
|
+
"@minecraft/common": "^1.1.0"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|