@minecraft/server 1.11.0-rc.1.21.10-preview.23 → 1.11.0
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 +11 -143
- package/package.json +1 -1
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.11.0"
|
|
19
19
|
* }
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
@@ -260,9 +260,6 @@ export enum EasingType {
|
|
|
260
260
|
Spring = 'Spring',
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
/**
|
|
264
|
-
* @rc
|
|
265
|
-
*/
|
|
266
263
|
export enum EnchantmentSlot {
|
|
267
264
|
ArmorFeet = 'ArmorFeet',
|
|
268
265
|
ArmorHead = 'ArmorHead',
|
|
@@ -286,17 +283,11 @@ export enum EnchantmentSlot {
|
|
|
286
283
|
}
|
|
287
284
|
|
|
288
285
|
export enum EntityComponentTypes {
|
|
289
|
-
/**
|
|
290
|
-
* @rc
|
|
291
|
-
*/
|
|
292
286
|
AddRider = 'minecraft:addrider',
|
|
293
287
|
CanClimb = 'minecraft:can_climb',
|
|
294
288
|
CanFly = 'minecraft:can_fly',
|
|
295
289
|
CanPowerJump = 'minecraft:can_power_jump',
|
|
296
290
|
Color = 'minecraft:color',
|
|
297
|
-
/**
|
|
298
|
-
* @rc
|
|
299
|
-
*/
|
|
300
291
|
Color2 = 'minecraft:color2',
|
|
301
292
|
Equippable = 'minecraft:equippable',
|
|
302
293
|
FireImmune = 'minecraft:fire_immune',
|
|
@@ -329,46 +320,19 @@ export enum EntityComponentTypes {
|
|
|
329
320
|
MovementHover = 'minecraft:movement.hover',
|
|
330
321
|
MovementJump = 'minecraft:movement.jump',
|
|
331
322
|
MovementSkip = 'minecraft:movement.skip',
|
|
332
|
-
/**
|
|
333
|
-
* @rc
|
|
334
|
-
*/
|
|
335
323
|
NavigationClimb = 'minecraft:navigation.climb',
|
|
336
|
-
/**
|
|
337
|
-
* @rc
|
|
338
|
-
*/
|
|
339
324
|
NavigationFloat = 'minecraft:navigation.float',
|
|
340
|
-
/**
|
|
341
|
-
* @rc
|
|
342
|
-
*/
|
|
343
325
|
NavigationFly = 'minecraft:navigation.fly',
|
|
344
|
-
/**
|
|
345
|
-
* @rc
|
|
346
|
-
*/
|
|
347
326
|
NavigationGeneric = 'minecraft:navigation.generic',
|
|
348
|
-
/**
|
|
349
|
-
* @rc
|
|
350
|
-
*/
|
|
351
327
|
NavigationHover = 'minecraft:navigation.hover',
|
|
352
|
-
/**
|
|
353
|
-
* @rc
|
|
354
|
-
*/
|
|
355
328
|
NavigationWalk = 'minecraft:navigation.walk',
|
|
356
329
|
OnFire = 'minecraft:onfire',
|
|
357
330
|
Projectile = 'minecraft:projectile',
|
|
358
331
|
PushThrough = 'minecraft:push_through',
|
|
359
|
-
/**
|
|
360
|
-
* @rc
|
|
361
|
-
*/
|
|
362
332
|
Rideable = 'minecraft:rideable',
|
|
363
|
-
/**
|
|
364
|
-
* @rc
|
|
365
|
-
*/
|
|
366
333
|
Riding = 'minecraft:riding',
|
|
367
334
|
Scale = 'minecraft:scale',
|
|
368
335
|
SkinId = 'minecraft:skin_id',
|
|
369
|
-
/**
|
|
370
|
-
* @rc
|
|
371
|
-
*/
|
|
372
336
|
TameMount = 'minecraft:tamemount',
|
|
373
337
|
TypeFamily = 'minecraft:type_family',
|
|
374
338
|
Variant = 'minecraft:variant',
|
|
@@ -753,9 +717,6 @@ export enum GameMode {
|
|
|
753
717
|
survival = 'survival',
|
|
754
718
|
}
|
|
755
719
|
|
|
756
|
-
/**
|
|
757
|
-
* @rc
|
|
758
|
-
*/
|
|
759
720
|
export enum GameRule {
|
|
760
721
|
/**
|
|
761
722
|
* @remarks
|
|
@@ -996,9 +957,6 @@ export enum GameRule {
|
|
|
996
957
|
TntExplosionDropDecay = 'tntExplosionDropDecay',
|
|
997
958
|
}
|
|
998
959
|
|
|
999
|
-
/**
|
|
1000
|
-
* @rc
|
|
1001
|
-
*/
|
|
1002
960
|
export enum HudElement {
|
|
1003
961
|
PaperDoll = 0,
|
|
1004
962
|
Armor = 1,
|
|
@@ -1015,9 +973,6 @@ export enum HudElement {
|
|
|
1015
973
|
ItemText = 12,
|
|
1016
974
|
}
|
|
1017
975
|
|
|
1018
|
-
/**
|
|
1019
|
-
* @rc
|
|
1020
|
-
*/
|
|
1021
976
|
export enum HudVisibility {
|
|
1022
977
|
Hide = 0,
|
|
1023
978
|
Reset = 1,
|
|
@@ -1041,7 +996,6 @@ export enum ItemComponentTypes {
|
|
|
1041
996
|
*/
|
|
1042
997
|
Durability = 'minecraft:durability',
|
|
1043
998
|
/**
|
|
1044
|
-
* @rc
|
|
1045
999
|
* @remarks
|
|
1046
1000
|
* The minecraft:enchantable component.
|
|
1047
1001
|
*
|
|
@@ -1164,9 +1118,6 @@ export enum ObjectiveSortOrder {
|
|
|
1164
1118
|
Descending = 1,
|
|
1165
1119
|
}
|
|
1166
1120
|
|
|
1167
|
-
/**
|
|
1168
|
-
* @rc
|
|
1169
|
-
*/
|
|
1170
1121
|
export enum PaletteColor {
|
|
1171
1122
|
White = 0,
|
|
1172
1123
|
Orange = 1,
|
|
@@ -1422,7 +1373,6 @@ export class Block {
|
|
|
1422
1373
|
*/
|
|
1423
1374
|
readonly permutation: BlockPermutation;
|
|
1424
1375
|
/**
|
|
1425
|
-
* @rc
|
|
1426
1376
|
* @remarks
|
|
1427
1377
|
* Gets the type of block.
|
|
1428
1378
|
*
|
|
@@ -1434,7 +1384,6 @@ export class Block {
|
|
|
1434
1384
|
*/
|
|
1435
1385
|
readonly 'type': BlockType;
|
|
1436
1386
|
/**
|
|
1437
|
-
* @rc
|
|
1438
1387
|
* @remarks
|
|
1439
1388
|
* Identifier of the type of block for this block.
|
|
1440
1389
|
*
|
|
@@ -1613,7 +1562,6 @@ export class Block {
|
|
|
1613
1562
|
*/
|
|
1614
1563
|
isValid(): boolean;
|
|
1615
1564
|
/**
|
|
1616
|
-
* @rc
|
|
1617
1565
|
* @remarks
|
|
1618
1566
|
* Tests whether this block matches a specific criteria.
|
|
1619
1567
|
*
|
|
@@ -1680,7 +1628,6 @@ export class Block {
|
|
|
1680
1628
|
*/
|
|
1681
1629
|
setPermutation(permutation: BlockPermutation): void;
|
|
1682
1630
|
/**
|
|
1683
|
-
* @rc
|
|
1684
1631
|
* @remarks
|
|
1685
1632
|
* Sets the type of block.
|
|
1686
1633
|
*
|
|
@@ -1832,7 +1779,6 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
1832
1779
|
export class BlockPermutation {
|
|
1833
1780
|
private constructor();
|
|
1834
1781
|
/**
|
|
1835
|
-
* @rc
|
|
1836
1782
|
* @remarks
|
|
1837
1783
|
* The {@link BlockType} that the permutation has.
|
|
1838
1784
|
*
|
|
@@ -2269,7 +2215,6 @@ export class BlockStateType {
|
|
|
2269
2215
|
export class BlockType {
|
|
2270
2216
|
private constructor();
|
|
2271
2217
|
/**
|
|
2272
|
-
* @rc
|
|
2273
2218
|
* @remarks
|
|
2274
2219
|
* Block type name - for example, `minecraft:acacia_stairs`.
|
|
2275
2220
|
*
|
|
@@ -2278,7 +2223,6 @@ export class BlockType {
|
|
|
2278
2223
|
}
|
|
2279
2224
|
|
|
2280
2225
|
/**
|
|
2281
|
-
* @rc
|
|
2282
2226
|
* Contains a catalog of Minecraft Block Types that are
|
|
2283
2227
|
* available in this world.
|
|
2284
2228
|
*/
|
|
@@ -2305,7 +2249,6 @@ export class BlockTypes {
|
|
|
2305
2249
|
}
|
|
2306
2250
|
|
|
2307
2251
|
/**
|
|
2308
|
-
* @rc
|
|
2309
2252
|
* Base type for BlockVolumes.
|
|
2310
2253
|
*/
|
|
2311
2254
|
export class BlockVolumeBase {
|
|
@@ -3173,6 +3116,7 @@ export class DataDrivenEntityTriggerAfterEventSignal {
|
|
|
3173
3116
|
*
|
|
3174
3117
|
* This function can't be called in read-only mode.
|
|
3175
3118
|
*
|
|
3119
|
+
* @throws This function can throw errors.
|
|
3176
3120
|
*/
|
|
3177
3121
|
unsubscribe(callback: (arg: DataDrivenEntityTriggerAfterEvent) => void): void;
|
|
3178
3122
|
}
|
|
@@ -3363,7 +3307,6 @@ export class Dimension {
|
|
|
3363
3307
|
*/
|
|
3364
3308
|
getPlayers(options?: EntityQueryOptions): Player[];
|
|
3365
3309
|
/**
|
|
3366
|
-
* @rc
|
|
3367
3310
|
* @remarks
|
|
3368
3311
|
* This function can't be called in read-only mode.
|
|
3369
3312
|
*
|
|
@@ -3687,6 +3630,7 @@ export class EffectAddAfterEventSignal {
|
|
|
3687
3630
|
*
|
|
3688
3631
|
* This function can't be called in read-only mode.
|
|
3689
3632
|
*
|
|
3633
|
+
* @throws This function can throw errors.
|
|
3690
3634
|
*/
|
|
3691
3635
|
unsubscribe(callback: (arg: EffectAddAfterEvent) => void): void;
|
|
3692
3636
|
}
|
|
@@ -3795,7 +3739,6 @@ export class EffectTypes {
|
|
|
3795
3739
|
}
|
|
3796
3740
|
|
|
3797
3741
|
/**
|
|
3798
|
-
* @rc
|
|
3799
3742
|
* Contains information on a type of enchantment.
|
|
3800
3743
|
*/
|
|
3801
3744
|
export class EnchantmentType {
|
|
@@ -3818,7 +3761,6 @@ export class EnchantmentType {
|
|
|
3818
3761
|
}
|
|
3819
3762
|
|
|
3820
3763
|
/**
|
|
3821
|
-
* @rc
|
|
3822
3764
|
* Contains a catalog of Minecraft Enchantment Types that are
|
|
3823
3765
|
* available in this world.
|
|
3824
3766
|
*/
|
|
@@ -4024,7 +3966,7 @@ export class Entity {
|
|
|
4024
3966
|
* }
|
|
4025
3967
|
* ```
|
|
4026
3968
|
*/
|
|
4027
|
-
addEffect(effectType: EffectType | string, duration: number, options?: EntityEffectOptions):
|
|
3969
|
+
addEffect(effectType: EffectType | string, duration: number, options?: EntityEffectOptions): void;
|
|
4028
3970
|
/**
|
|
4029
3971
|
* @remarks
|
|
4030
3972
|
* Adds a specified tag to an entity.
|
|
@@ -4771,7 +4713,6 @@ export class Entity {
|
|
|
4771
4713
|
}
|
|
4772
4714
|
|
|
4773
4715
|
/**
|
|
4774
|
-
* @rc
|
|
4775
4716
|
* When added, this component makes the entity spawn with a
|
|
4776
4717
|
* rider of the specified entityType.
|
|
4777
4718
|
*/
|
|
@@ -4922,9 +4863,6 @@ export class EntityCanPowerJumpComponent extends EntityComponent {
|
|
|
4922
4863
|
static readonly componentId = 'minecraft:can_power_jump';
|
|
4923
4864
|
}
|
|
4924
4865
|
|
|
4925
|
-
/**
|
|
4926
|
-
* @rc
|
|
4927
|
-
*/
|
|
4928
4866
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
4929
4867
|
export class EntityColor2Component extends EntityComponent {
|
|
4930
4868
|
private constructor();
|
|
@@ -4961,7 +4899,6 @@ export class EntityColorComponent extends EntityComponent {
|
|
|
4961
4899
|
export class EntityComponent extends Component {
|
|
4962
4900
|
private constructor();
|
|
4963
4901
|
/**
|
|
4964
|
-
* @rc
|
|
4965
4902
|
* @remarks
|
|
4966
4903
|
* The entity that owns this component. The entity will be
|
|
4967
4904
|
* undefined if it has been removed.
|
|
@@ -5022,6 +4959,7 @@ export class EntityDieAfterEventSignal {
|
|
|
5022
4959
|
*
|
|
5023
4960
|
* This function can't be called in read-only mode.
|
|
5024
4961
|
*
|
|
4962
|
+
* @throws This function can throw errors.
|
|
5025
4963
|
*/
|
|
5026
4964
|
unsubscribe(callback: (arg: EntityDieAfterEvent) => void): void;
|
|
5027
4965
|
}
|
|
@@ -5260,6 +5198,7 @@ export class EntityHealthChangedAfterEventSignal {
|
|
|
5260
5198
|
*
|
|
5261
5199
|
* This function can't be called in read-only mode.
|
|
5262
5200
|
*
|
|
5201
|
+
* @throws This function can throw errors.
|
|
5263
5202
|
*/
|
|
5264
5203
|
unsubscribe(callback: (arg: EntityHealthChangedAfterEvent) => void): void;
|
|
5265
5204
|
}
|
|
@@ -5345,6 +5284,7 @@ export class EntityHitBlockAfterEventSignal {
|
|
|
5345
5284
|
*
|
|
5346
5285
|
* This function can't be called in read-only mode.
|
|
5347
5286
|
*
|
|
5287
|
+
* @throws This function can throw errors.
|
|
5348
5288
|
*/
|
|
5349
5289
|
unsubscribe(callback: (arg: EntityHitBlockAfterEvent) => void): void;
|
|
5350
5290
|
}
|
|
@@ -5394,6 +5334,7 @@ export class EntityHitEntityAfterEventSignal {
|
|
|
5394
5334
|
*
|
|
5395
5335
|
* This function can't be called in read-only mode.
|
|
5396
5336
|
*
|
|
5337
|
+
* @throws This function can throw errors.
|
|
5397
5338
|
*/
|
|
5398
5339
|
unsubscribe(callback: (arg: EntityHitEntityAfterEvent) => void): void;
|
|
5399
5340
|
}
|
|
@@ -5447,6 +5388,7 @@ export class EntityHurtAfterEventSignal {
|
|
|
5447
5388
|
*
|
|
5448
5389
|
* This function can't be called in read-only mode.
|
|
5449
5390
|
*
|
|
5391
|
+
* @throws This function can throw errors.
|
|
5450
5392
|
*/
|
|
5451
5393
|
unsubscribe(callback: (arg: EntityHurtAfterEvent) => void): void;
|
|
5452
5394
|
}
|
|
@@ -5820,7 +5762,6 @@ export class EntityMovementSkipComponent extends EntityBaseMovementComponent {
|
|
|
5820
5762
|
}
|
|
5821
5763
|
|
|
5822
5764
|
/**
|
|
5823
|
-
* @rc
|
|
5824
5765
|
* Allows this entity to generate paths that include vertical
|
|
5825
5766
|
* walls (for example, like Minecraft spiders do.)
|
|
5826
5767
|
*/
|
|
@@ -5831,7 +5772,6 @@ export class EntityNavigationClimbComponent extends EntityNavigationComponent {
|
|
|
5831
5772
|
}
|
|
5832
5773
|
|
|
5833
5774
|
/**
|
|
5834
|
-
* @rc
|
|
5835
5775
|
* Allows this entity to generate paths that include vertical
|
|
5836
5776
|
* walls (for example, like Minecraft spiders do.)
|
|
5837
5777
|
*/
|
|
@@ -5989,7 +5929,6 @@ export class EntityNavigationComponent extends EntityComponent {
|
|
|
5989
5929
|
}
|
|
5990
5930
|
|
|
5991
5931
|
/**
|
|
5992
|
-
* @rc
|
|
5993
5932
|
* Allows this entity to generate paths by flying around the
|
|
5994
5933
|
* air like the regular Ghast.
|
|
5995
5934
|
*/
|
|
@@ -6000,7 +5939,6 @@ export class EntityNavigationFloatComponent extends EntityNavigationComponent {
|
|
|
6000
5939
|
}
|
|
6001
5940
|
|
|
6002
5941
|
/**
|
|
6003
|
-
* @rc
|
|
6004
5942
|
* Allows this entity to generate paths in the air (for
|
|
6005
5943
|
* example, like Minecraft parrots do.)
|
|
6006
5944
|
*/
|
|
@@ -6011,7 +5949,6 @@ export class EntityNavigationFlyComponent extends EntityNavigationComponent {
|
|
|
6011
5949
|
}
|
|
6012
5950
|
|
|
6013
5951
|
/**
|
|
6014
|
-
* @rc
|
|
6015
5952
|
* Allows this entity to generate paths by walking, swimming,
|
|
6016
5953
|
* flying and/or climbing around and jumping up and down a
|
|
6017
5954
|
* block.
|
|
@@ -6023,7 +5960,6 @@ export class EntityNavigationGenericComponent extends EntityNavigationComponent
|
|
|
6023
5960
|
}
|
|
6024
5961
|
|
|
6025
5962
|
/**
|
|
6026
|
-
* @rc
|
|
6027
5963
|
* Allows this entity to generate paths in the air (for
|
|
6028
5964
|
* example, like the Minecraft Bees do.) Keeps them from
|
|
6029
5965
|
* falling out of the skies and doing predictive movement.
|
|
@@ -6035,7 +5971,6 @@ export class EntityNavigationHoverComponent extends EntityNavigationComponent {
|
|
|
6035
5971
|
}
|
|
6036
5972
|
|
|
6037
5973
|
/**
|
|
6038
|
-
* @rc
|
|
6039
5974
|
* Allows this entity to generate paths by walking around and
|
|
6040
5975
|
* jumping up and down a block like regular mobs.
|
|
6041
5976
|
*/
|
|
@@ -6321,6 +6256,7 @@ export class EntityRemoveAfterEventSignal {
|
|
|
6321
6256
|
*
|
|
6322
6257
|
* This function can't be called in read-only mode.
|
|
6323
6258
|
*
|
|
6259
|
+
* @throws This function can throw errors.
|
|
6324
6260
|
*/
|
|
6325
6261
|
unsubscribe(callback: (arg: EntityRemoveAfterEvent) => void): void;
|
|
6326
6262
|
}
|
|
@@ -6373,7 +6309,6 @@ export class EntityRemoveBeforeEventSignal {
|
|
|
6373
6309
|
}
|
|
6374
6310
|
|
|
6375
6311
|
/**
|
|
6376
|
-
* @rc
|
|
6377
6312
|
* When added, this component adds the capability that an
|
|
6378
6313
|
* entity can be ridden by another entity.
|
|
6379
6314
|
*/
|
|
@@ -6496,7 +6431,6 @@ export class EntityRideableComponent extends EntityComponent {
|
|
|
6496
6431
|
}
|
|
6497
6432
|
|
|
6498
6433
|
/**
|
|
6499
|
-
* @rc
|
|
6500
6434
|
* This component is added to any entity when it is riding
|
|
6501
6435
|
* another entity.
|
|
6502
6436
|
*/
|
|
@@ -6626,7 +6560,6 @@ export class EntitySpawnAfterEventSignal {
|
|
|
6626
6560
|
}
|
|
6627
6561
|
|
|
6628
6562
|
/**
|
|
6629
|
-
* @rc
|
|
6630
6563
|
* Contains options for taming a rideable entity based on the
|
|
6631
6564
|
* entity that mounts it.
|
|
6632
6565
|
*/
|
|
@@ -6894,7 +6827,6 @@ export class FeedItemEffect {
|
|
|
6894
6827
|
}
|
|
6895
6828
|
|
|
6896
6829
|
/**
|
|
6897
|
-
* @rc
|
|
6898
6830
|
* Contains information regarding a changed world.gameRules
|
|
6899
6831
|
* property.
|
|
6900
6832
|
*/
|
|
@@ -6917,7 +6849,6 @@ export class GameRuleChangeAfterEvent {
|
|
|
6917
6849
|
}
|
|
6918
6850
|
|
|
6919
6851
|
/**
|
|
6920
|
-
* @rc
|
|
6921
6852
|
* Manages callbacks that are connected to when a
|
|
6922
6853
|
* world.gameRules property has changed.
|
|
6923
6854
|
*/
|
|
@@ -6944,7 +6875,6 @@ export class GameRuleChangeAfterEventSignal {
|
|
|
6944
6875
|
}
|
|
6945
6876
|
|
|
6946
6877
|
/**
|
|
6947
|
-
* @rc
|
|
6948
6878
|
* Represents the game rules for a world experience.
|
|
6949
6879
|
*/
|
|
6950
6880
|
export class GameRules {
|
|
@@ -7459,7 +7389,6 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
7459
7389
|
}
|
|
7460
7390
|
|
|
7461
7391
|
/**
|
|
7462
|
-
* @rc
|
|
7463
7392
|
* When present on an item, this item can have enchantments
|
|
7464
7393
|
* applied to it.
|
|
7465
7394
|
* @example givePlayerIronFireSword.ts
|
|
@@ -8053,7 +7982,6 @@ export class ItemStack {
|
|
|
8053
7982
|
*/
|
|
8054
7983
|
isStackableWith(itemStack: ItemStack): boolean;
|
|
8055
7984
|
/**
|
|
8056
|
-
* @rc
|
|
8057
7985
|
* @remarks
|
|
8058
7986
|
* Version safe way of checking if an item matches.
|
|
8059
7987
|
*
|
|
@@ -8672,9 +8600,6 @@ export class LeverActionAfterEventSignal extends ILeverActionAfterEventSignal {
|
|
|
8672
8600
|
private constructor();
|
|
8673
8601
|
}
|
|
8674
8602
|
|
|
8675
|
-
/**
|
|
8676
|
-
* @rc
|
|
8677
|
-
*/
|
|
8678
8603
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
8679
8604
|
export class ListBlockVolume extends BlockVolumeBase {
|
|
8680
8605
|
constructor(locations: Vector3[]);
|
|
@@ -8932,7 +8857,6 @@ export class Player extends Entity {
|
|
|
8932
8857
|
*/
|
|
8933
8858
|
readonly onScreenDisplay: ScreenDisplay;
|
|
8934
8859
|
/**
|
|
8935
|
-
* @rc
|
|
8936
8860
|
* @remarks
|
|
8937
8861
|
* This property can't be edited in read-only mode.
|
|
8938
8862
|
*
|
|
@@ -8983,12 +8907,10 @@ export class Player extends Entity {
|
|
|
8983
8907
|
*/
|
|
8984
8908
|
addLevels(amount: number): number;
|
|
8985
8909
|
/**
|
|
8986
|
-
* @rc
|
|
8987
8910
|
* @throws This function can throw errors.
|
|
8988
8911
|
*/
|
|
8989
8912
|
getGameMode(): GameMode;
|
|
8990
8913
|
/**
|
|
8991
|
-
* @rc
|
|
8992
8914
|
* @remarks
|
|
8993
8915
|
* Gets the current item cooldown time for a particular
|
|
8994
8916
|
* cooldown category.
|
|
@@ -9105,7 +9027,6 @@ export class Player extends Entity {
|
|
|
9105
9027
|
*/
|
|
9106
9028
|
sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
|
|
9107
9029
|
/**
|
|
9108
|
-
* @rc
|
|
9109
9030
|
* @remarks
|
|
9110
9031
|
* This function can't be called in read-only mode.
|
|
9111
9032
|
*
|
|
@@ -9127,7 +9048,6 @@ export class Player extends Entity {
|
|
|
9127
9048
|
*/
|
|
9128
9049
|
setSpawnPoint(spawnPoint?: DimensionLocation): void;
|
|
9129
9050
|
/**
|
|
9130
|
-
* @rc
|
|
9131
9051
|
* @remarks
|
|
9132
9052
|
* Sets the item cooldown time for a particular cooldown
|
|
9133
9053
|
* category.
|
|
@@ -9341,9 +9261,6 @@ export class PlayerDimensionChangeAfterEventSignal {
|
|
|
9341
9261
|
unsubscribe(callback: (arg: PlayerDimensionChangeAfterEvent) => void): void;
|
|
9342
9262
|
}
|
|
9343
9263
|
|
|
9344
|
-
/**
|
|
9345
|
-
* @rc
|
|
9346
|
-
*/
|
|
9347
9264
|
export class PlayerGameModeChangeAfterEvent {
|
|
9348
9265
|
private constructor();
|
|
9349
9266
|
readonly fromGameMode: GameMode;
|
|
@@ -9351,9 +9268,6 @@ export class PlayerGameModeChangeAfterEvent {
|
|
|
9351
9268
|
readonly toGameMode: GameMode;
|
|
9352
9269
|
}
|
|
9353
9270
|
|
|
9354
|
-
/**
|
|
9355
|
-
* @rc
|
|
9356
|
-
*/
|
|
9357
9271
|
export class PlayerGameModeChangeAfterEventSignal {
|
|
9358
9272
|
private constructor();
|
|
9359
9273
|
/**
|
|
@@ -9370,9 +9284,6 @@ export class PlayerGameModeChangeAfterEventSignal {
|
|
|
9370
9284
|
unsubscribe(callback: (arg: PlayerGameModeChangeAfterEvent) => void): void;
|
|
9371
9285
|
}
|
|
9372
9286
|
|
|
9373
|
-
/**
|
|
9374
|
-
* @rc
|
|
9375
|
-
*/
|
|
9376
9287
|
export class PlayerGameModeChangeBeforeEvent {
|
|
9377
9288
|
private constructor();
|
|
9378
9289
|
cancel: boolean;
|
|
@@ -9381,9 +9292,6 @@ export class PlayerGameModeChangeBeforeEvent {
|
|
|
9381
9292
|
toGameMode: GameMode;
|
|
9382
9293
|
}
|
|
9383
9294
|
|
|
9384
|
-
/**
|
|
9385
|
-
* @rc
|
|
9386
|
-
*/
|
|
9387
9295
|
export class PlayerGameModeChangeBeforeEventSignal {
|
|
9388
9296
|
private constructor();
|
|
9389
9297
|
/**
|
|
@@ -10373,7 +10281,6 @@ export class ScoreboardScoreInfo {
|
|
|
10373
10281
|
export class ScreenDisplay {
|
|
10374
10282
|
private constructor();
|
|
10375
10283
|
/**
|
|
10376
|
-
* @rc
|
|
10377
10284
|
* @remarks
|
|
10378
10285
|
* This function can't be called in read-only mode.
|
|
10379
10286
|
*
|
|
@@ -10381,7 +10288,6 @@ export class ScreenDisplay {
|
|
|
10381
10288
|
*/
|
|
10382
10289
|
getHiddenHudElements(): HudElement[];
|
|
10383
10290
|
/**
|
|
10384
|
-
* @rc
|
|
10385
10291
|
* @remarks
|
|
10386
10292
|
* This function can't be called in read-only mode.
|
|
10387
10293
|
*
|
|
@@ -10389,7 +10295,6 @@ export class ScreenDisplay {
|
|
|
10389
10295
|
*/
|
|
10390
10296
|
hideAllExcept(hudElements?: HudElement[]): void;
|
|
10391
10297
|
/**
|
|
10392
|
-
* @rc
|
|
10393
10298
|
* @remarks
|
|
10394
10299
|
* This function can't be called in read-only mode.
|
|
10395
10300
|
*
|
|
@@ -10404,7 +10309,6 @@ export class ScreenDisplay {
|
|
|
10404
10309
|
*/
|
|
10405
10310
|
isValid(): boolean;
|
|
10406
10311
|
/**
|
|
10407
|
-
* @rc
|
|
10408
10312
|
* @remarks
|
|
10409
10313
|
* This function can't be called in read-only mode.
|
|
10410
10314
|
*
|
|
@@ -10424,7 +10328,6 @@ export class ScreenDisplay {
|
|
|
10424
10328
|
*/
|
|
10425
10329
|
setActionBar(text: (RawMessage | string)[] | RawMessage | string): void;
|
|
10426
10330
|
/**
|
|
10427
|
-
* @rc
|
|
10428
10331
|
* @remarks
|
|
10429
10332
|
* This function can't be called in read-only mode.
|
|
10430
10333
|
*
|
|
@@ -10571,12 +10474,12 @@ export class ScriptEventCommandMessageAfterEventSignal {
|
|
|
10571
10474
|
*
|
|
10572
10475
|
* This function can't be called in read-only mode.
|
|
10573
10476
|
*
|
|
10477
|
+
* @throws This function can throw errors.
|
|
10574
10478
|
*/
|
|
10575
10479
|
unsubscribe(callback: (arg: ScriptEventCommandMessageAfterEvent) => void): void;
|
|
10576
10480
|
}
|
|
10577
10481
|
|
|
10578
10482
|
/**
|
|
10579
|
-
* @rc
|
|
10580
10483
|
* Describes a particular seating position on this rideable
|
|
10581
10484
|
* entity.
|
|
10582
10485
|
*/
|
|
@@ -10692,7 +10595,6 @@ export class Structure {
|
|
|
10692
10595
|
*/
|
|
10693
10596
|
isValid(): boolean;
|
|
10694
10597
|
/**
|
|
10695
|
-
* @rc
|
|
10696
10598
|
* @remarks
|
|
10697
10599
|
* Creates a copy of a Structure and saves it with a new name.
|
|
10698
10600
|
*
|
|
@@ -10718,7 +10620,6 @@ export class Structure {
|
|
|
10718
10620
|
*/
|
|
10719
10621
|
saveAs(identifier: string, saveMode?: StructureSaveMode): Structure;
|
|
10720
10622
|
/**
|
|
10721
|
-
* @rc
|
|
10722
10623
|
* @remarks
|
|
10723
10624
|
* Saves a modified Structure to the world file.
|
|
10724
10625
|
*
|
|
@@ -10731,7 +10632,6 @@ export class Structure {
|
|
|
10731
10632
|
*/
|
|
10732
10633
|
saveToWorld(): void;
|
|
10733
10634
|
/**
|
|
10734
|
-
* @rc
|
|
10735
10635
|
* @remarks
|
|
10736
10636
|
* Sets a BlockPermutation within a Structure.
|
|
10737
10637
|
*
|
|
@@ -10792,7 +10692,6 @@ export class StructureManager {
|
|
|
10792
10692
|
*/
|
|
10793
10693
|
createEmpty(identifier: string, size: Vector3, saveMode?: StructureSaveMode): Structure;
|
|
10794
10694
|
/**
|
|
10795
|
-
* @rc
|
|
10796
10695
|
* @remarks
|
|
10797
10696
|
* Creates a new Structure from blocks in the world. This is
|
|
10798
10697
|
* functionally equivalent to the /structure save command.
|
|
@@ -10858,7 +10757,6 @@ export class StructureManager {
|
|
|
10858
10757
|
*/
|
|
10859
10758
|
get(identifier: string): Structure | undefined;
|
|
10860
10759
|
/**
|
|
10861
|
-
* @rc
|
|
10862
10760
|
* @remarks
|
|
10863
10761
|
* This function can't be called in read-only mode.
|
|
10864
10762
|
*
|
|
@@ -11231,7 +11129,6 @@ export class WeatherChangeAfterEventSignal {
|
|
|
11231
11129
|
}
|
|
11232
11130
|
|
|
11233
11131
|
/**
|
|
11234
|
-
* @rc
|
|
11235
11132
|
* Contains information related to changes in weather in the
|
|
11236
11133
|
* environment.
|
|
11237
11134
|
*/
|
|
@@ -11265,7 +11162,6 @@ export class WeatherChangeBeforeEvent {
|
|
|
11265
11162
|
}
|
|
11266
11163
|
|
|
11267
11164
|
/**
|
|
11268
|
-
* @rc
|
|
11269
11165
|
* Manages callbacks that are connected to before weather
|
|
11270
11166
|
* changing.
|
|
11271
11167
|
*/
|
|
@@ -11312,7 +11208,6 @@ export class World {
|
|
|
11312
11208
|
*/
|
|
11313
11209
|
readonly beforeEvents: WorldBeforeEvents;
|
|
11314
11210
|
/**
|
|
11315
|
-
* @rc
|
|
11316
11211
|
* @remarks
|
|
11317
11212
|
* The game rules that apply to the world.
|
|
11318
11213
|
*
|
|
@@ -11883,7 +11778,6 @@ export class WorldAfterEvents {
|
|
|
11883
11778
|
*/
|
|
11884
11779
|
readonly explosion: ExplosionAfterEventSignal;
|
|
11885
11780
|
/**
|
|
11886
|
-
* @rc
|
|
11887
11781
|
* @remarks
|
|
11888
11782
|
* This event fires when a world.gameRules property has
|
|
11889
11783
|
* changed.
|
|
@@ -11971,9 +11865,6 @@ export class WorldAfterEvents {
|
|
|
11971
11865
|
*
|
|
11972
11866
|
*/
|
|
11973
11867
|
readonly playerDimensionChange: PlayerDimensionChangeAfterEventSignal;
|
|
11974
|
-
/**
|
|
11975
|
-
* @rc
|
|
11976
|
-
*/
|
|
11977
11868
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
11978
11869
|
/**
|
|
11979
11870
|
* @remarks
|
|
@@ -12106,9 +11997,6 @@ export class WorldBeforeEvents {
|
|
|
12106
11997
|
*
|
|
12107
11998
|
*/
|
|
12108
11999
|
readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal;
|
|
12109
|
-
/**
|
|
12110
|
-
* @rc
|
|
12111
|
-
*/
|
|
12112
12000
|
readonly playerGameModeChange: PlayerGameModeChangeBeforeEventSignal;
|
|
12113
12001
|
/**
|
|
12114
12002
|
* @remarks
|
|
@@ -12116,9 +12004,6 @@ export class WorldBeforeEvents {
|
|
|
12116
12004
|
*
|
|
12117
12005
|
*/
|
|
12118
12006
|
readonly playerLeave: PlayerLeaveBeforeEventSignal;
|
|
12119
|
-
/**
|
|
12120
|
-
* @rc
|
|
12121
|
-
*/
|
|
12122
12007
|
readonly weatherChange: WeatherChangeBeforeEventSignal;
|
|
12123
12008
|
}
|
|
12124
12009
|
|
|
@@ -12409,7 +12294,6 @@ export interface DimensionLocation {
|
|
|
12409
12294
|
}
|
|
12410
12295
|
|
|
12411
12296
|
/**
|
|
12412
|
-
* @rc
|
|
12413
12297
|
* This interface represents a specific leveled enchantment
|
|
12414
12298
|
* that is applied to an item.
|
|
12415
12299
|
*/
|
|
@@ -13026,7 +12910,6 @@ export interface EntityQueryOptions extends EntityFilter {
|
|
|
13026
12910
|
*/
|
|
13027
12911
|
minDistance?: number;
|
|
13028
12912
|
/**
|
|
13029
|
-
* @rc
|
|
13030
12913
|
* @remarks
|
|
13031
12914
|
* In conjunction with location, specified a cuboid volume of
|
|
13032
12915
|
* entities to include.
|
|
@@ -13718,25 +13601,16 @@ export class CommandError extends Error {
|
|
|
13718
13601
|
private constructor();
|
|
13719
13602
|
}
|
|
13720
13603
|
|
|
13721
|
-
/**
|
|
13722
|
-
* @rc
|
|
13723
|
-
*/
|
|
13724
13604
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
13725
13605
|
export class EnchantmentLevelOutOfBoundsError extends Error {
|
|
13726
13606
|
private constructor();
|
|
13727
13607
|
}
|
|
13728
13608
|
|
|
13729
|
-
/**
|
|
13730
|
-
* @rc
|
|
13731
|
-
*/
|
|
13732
13609
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
13733
13610
|
export class EnchantmentTypeNotCompatibleError extends Error {
|
|
13734
13611
|
private constructor();
|
|
13735
13612
|
}
|
|
13736
13613
|
|
|
13737
|
-
/**
|
|
13738
|
-
* @rc
|
|
13739
|
-
*/
|
|
13740
13614
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
13741
13615
|
export class EnchantmentTypeUnknownIdError extends Error {
|
|
13742
13616
|
private constructor();
|
|
@@ -13774,13 +13648,7 @@ export class LocationOutOfWorldBoundariesError extends Error {
|
|
|
13774
13648
|
private constructor();
|
|
13775
13649
|
}
|
|
13776
13650
|
|
|
13777
|
-
/**
|
|
13778
|
-
* @rc
|
|
13779
|
-
*/
|
|
13780
13651
|
export const HudElementsCount = 13;
|
|
13781
|
-
/**
|
|
13782
|
-
* @rc
|
|
13783
|
-
*/
|
|
13784
13652
|
export const HudVisibilityCount = 2;
|
|
13785
13653
|
/**
|
|
13786
13654
|
* @remarks
|