@minecraft/server 1.0.0-beta.00001b50 → 1.0.0-beta.11940b24
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 +551 -20
- package/package.json +1 -1
- package/tests.ts +65 -49
package/index.d.ts
CHANGED
|
@@ -911,7 +911,15 @@ export class BlockInventoryComponent extends BlockComponent {
|
|
|
911
911
|
* Coordinates of the specified block.
|
|
912
912
|
*/
|
|
913
913
|
readonly location: BlockLocation;
|
|
914
|
+
/**
|
|
915
|
+
* Identifier of this component. Should always be
|
|
916
|
+
* minecraft:inventory.
|
|
917
|
+
*/
|
|
914
918
|
readonly typeId: string;
|
|
919
|
+
/**
|
|
920
|
+
* Identifier of this component. Should always be
|
|
921
|
+
* minecraft:inventory.
|
|
922
|
+
*/
|
|
915
923
|
static readonly componentId = 'minecraft:inventory';
|
|
916
924
|
protected constructor();
|
|
917
925
|
}
|
|
@@ -1021,7 +1029,15 @@ export class BlockLavaContainerComponent extends BlockComponent {
|
|
|
1021
1029
|
* Source location of the block.
|
|
1022
1030
|
*/
|
|
1023
1031
|
readonly location: BlockLocation;
|
|
1032
|
+
/**
|
|
1033
|
+
* Identifier of this component. Should always be
|
|
1034
|
+
* minecraft:lavaContainer.
|
|
1035
|
+
*/
|
|
1024
1036
|
readonly typeId: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* Identifier of this component. Should always be
|
|
1039
|
+
* minecraft:lavaContainer.
|
|
1040
|
+
*/
|
|
1025
1041
|
static readonly componentId = 'minecraft:lavaContainer';
|
|
1026
1042
|
protected constructor();
|
|
1027
1043
|
}
|
|
@@ -1205,7 +1221,13 @@ export class BlockPistonComponent extends BlockComponent {
|
|
|
1205
1221
|
* Source location of the block.
|
|
1206
1222
|
*/
|
|
1207
1223
|
readonly location: BlockLocation;
|
|
1224
|
+
/**
|
|
1225
|
+
* Identifier of this component.
|
|
1226
|
+
*/
|
|
1208
1227
|
readonly typeId: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Identifier of this component.
|
|
1230
|
+
*/
|
|
1209
1231
|
static readonly componentId = 'minecraft:piston';
|
|
1210
1232
|
protected constructor();
|
|
1211
1233
|
}
|
|
@@ -1266,7 +1288,15 @@ export class BlockPotionContainerComponent extends BlockComponent {
|
|
|
1266
1288
|
* Source location of the block.
|
|
1267
1289
|
*/
|
|
1268
1290
|
readonly location: BlockLocation;
|
|
1291
|
+
/**
|
|
1292
|
+
* Identifier of this component. Should always be
|
|
1293
|
+
* minecraft:potionContainer.
|
|
1294
|
+
*/
|
|
1269
1295
|
readonly typeId: string;
|
|
1296
|
+
/**
|
|
1297
|
+
* Identifier of this component. Should always be
|
|
1298
|
+
* minecraft:potionContainer.
|
|
1299
|
+
*/
|
|
1270
1300
|
static readonly componentId = 'minecraft:potionContainer';
|
|
1271
1301
|
/**
|
|
1272
1302
|
* @remarks
|
|
@@ -1904,7 +1934,15 @@ export class BlockRaycastOptions {
|
|
|
1904
1934
|
*/
|
|
1905
1935
|
export class BlockRecordPlayerComponent extends BlockComponent {
|
|
1906
1936
|
readonly location: BlockLocation;
|
|
1937
|
+
/**
|
|
1938
|
+
* Identifier of this component. Should always be
|
|
1939
|
+
* minecraft:recordPlayer.
|
|
1940
|
+
*/
|
|
1907
1941
|
readonly typeId: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* Identifier of this component. Should always be
|
|
1944
|
+
* minecraft:recordPlayer.
|
|
1945
|
+
*/
|
|
1908
1946
|
static readonly componentId = 'minecraft:recordPlayer';
|
|
1909
1947
|
/**
|
|
1910
1948
|
* @remarks
|
|
@@ -1951,7 +1989,15 @@ export class BlockSnowContainerComponent extends BlockComponent {
|
|
|
1951
1989
|
* Source location of the block.
|
|
1952
1990
|
*/
|
|
1953
1991
|
readonly location: BlockLocation;
|
|
1992
|
+
/**
|
|
1993
|
+
* Identifier of this component. Should always be
|
|
1994
|
+
* minecraft:snowContainer.
|
|
1995
|
+
*/
|
|
1954
1996
|
readonly typeId: string;
|
|
1997
|
+
/**
|
|
1998
|
+
* Identifier of this component. Should always be
|
|
1999
|
+
* minecraft:snowContainer.
|
|
2000
|
+
*/
|
|
1955
2001
|
static readonly componentId = 'minecraft:snowContainer';
|
|
1956
2002
|
protected constructor();
|
|
1957
2003
|
}
|
|
@@ -2000,7 +2046,15 @@ export class BlockWaterContainerComponent extends BlockComponent {
|
|
|
2000
2046
|
* Source location of the block.
|
|
2001
2047
|
*/
|
|
2002
2048
|
readonly location: BlockLocation;
|
|
2049
|
+
/**
|
|
2050
|
+
* Identifier of this component. Should always be
|
|
2051
|
+
* minecraft:waterContainer.
|
|
2052
|
+
*/
|
|
2003
2053
|
readonly typeId: string;
|
|
2054
|
+
/**
|
|
2055
|
+
* Identifier of this component. Should always be
|
|
2056
|
+
* minecraft:waterContainer.
|
|
2057
|
+
*/
|
|
2004
2058
|
static readonly componentId = 'minecraft:waterContainer';
|
|
2005
2059
|
/**
|
|
2006
2060
|
* @remarks
|
|
@@ -2759,7 +2813,7 @@ export class EnchantmentList implements Iterable<Enchantment> {
|
|
|
2759
2813
|
* The item slot/type that this collection is applied to.
|
|
2760
2814
|
*/
|
|
2761
2815
|
readonly slot: number;
|
|
2762
|
-
|
|
2816
|
+
[Symbol.iterator](): Iterator<Enchantment>;
|
|
2763
2817
|
/**
|
|
2764
2818
|
* @remarks
|
|
2765
2819
|
* Attempts to add the enchantment to this collection. Returns
|
|
@@ -2860,7 +2914,10 @@ export class Entity {
|
|
|
2860
2914
|
*/
|
|
2861
2915
|
readonly headLocation: Location;
|
|
2862
2916
|
/**
|
|
2863
|
-
* Unique identifier of the entity.
|
|
2917
|
+
* Unique identifier of the entity. This identifier is intended
|
|
2918
|
+
* to be consistent across loads of a world instance. No
|
|
2919
|
+
* meaning should be inferred from the value and structure of
|
|
2920
|
+
* this unique identifier - do not parse or interpret it.
|
|
2864
2921
|
* @throws This property can throw when used.
|
|
2865
2922
|
*/
|
|
2866
2923
|
readonly id: string;
|
|
@@ -2873,7 +2930,7 @@ export class Entity {
|
|
|
2873
2930
|
* Current location of the entity.
|
|
2874
2931
|
* @throws This property can throw when used.
|
|
2875
2932
|
*/
|
|
2876
|
-
readonly location:
|
|
2933
|
+
readonly location: Location;
|
|
2877
2934
|
/**
|
|
2878
2935
|
* Given name of the entity.
|
|
2879
2936
|
*/
|
|
@@ -2894,6 +2951,11 @@ export class Entity {
|
|
|
2894
2951
|
* @throws This property can throw when used.
|
|
2895
2952
|
*/
|
|
2896
2953
|
readonly target: Entity;
|
|
2954
|
+
/**
|
|
2955
|
+
* Unique identifier of the type of the entity - for example,
|
|
2956
|
+
* 'minecraft:skeleton'.
|
|
2957
|
+
* @throws This property can throw when used.
|
|
2958
|
+
*/
|
|
2897
2959
|
readonly typeId: string;
|
|
2898
2960
|
/**
|
|
2899
2961
|
* Velocity of the entity.
|
|
@@ -3172,7 +3234,15 @@ export class EntityAddRiderComponent extends IEntityComponent {
|
|
|
3172
3234
|
* @throws This property can throw when used.
|
|
3173
3235
|
*/
|
|
3174
3236
|
readonly spawnEvent: string;
|
|
3237
|
+
/**
|
|
3238
|
+
* Identifier of this component. Should always be
|
|
3239
|
+
* minecraft:addrider.
|
|
3240
|
+
*/
|
|
3175
3241
|
readonly typeId: string;
|
|
3242
|
+
/**
|
|
3243
|
+
* Identifier of this component. Should always be
|
|
3244
|
+
* minecraft:addrider.
|
|
3245
|
+
*/
|
|
3176
3246
|
static readonly componentId = 'minecraft:addrider';
|
|
3177
3247
|
protected constructor();
|
|
3178
3248
|
}
|
|
@@ -3205,7 +3275,15 @@ export class EntityAgeableComponent extends IEntityComponent {
|
|
|
3205
3275
|
* @throws This property can throw when used.
|
|
3206
3276
|
*/
|
|
3207
3277
|
readonly growUp: Trigger;
|
|
3278
|
+
/**
|
|
3279
|
+
* Identifier of this component. Should always be
|
|
3280
|
+
* minecraft:ageable.
|
|
3281
|
+
*/
|
|
3208
3282
|
readonly typeId: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* Identifier of this component. Should always be
|
|
3285
|
+
* minecraft:ageable.
|
|
3286
|
+
*/
|
|
3209
3287
|
static readonly componentId = 'minecraft:ageable';
|
|
3210
3288
|
protected constructor();
|
|
3211
3289
|
}
|
|
@@ -3266,7 +3344,15 @@ export class EntityBreathableComponent extends IEntityComponent {
|
|
|
3266
3344
|
* @throws This property can throw when used.
|
|
3267
3345
|
*/
|
|
3268
3346
|
readonly totalSupply: number;
|
|
3347
|
+
/**
|
|
3348
|
+
* Identifier of this component. Should always be
|
|
3349
|
+
* minecraft:breathable.
|
|
3350
|
+
*/
|
|
3269
3351
|
readonly typeId: string;
|
|
3352
|
+
/**
|
|
3353
|
+
* Identifier of this component. Should always be
|
|
3354
|
+
* minecraft:breathable.
|
|
3355
|
+
*/
|
|
3270
3356
|
static readonly componentId = 'minecraft:breathable';
|
|
3271
3357
|
/**
|
|
3272
3358
|
* @remarks
|
|
@@ -3283,7 +3369,15 @@ export class EntityBreathableComponent extends IEntityComponent {
|
|
|
3283
3369
|
* climb up ladders.
|
|
3284
3370
|
*/
|
|
3285
3371
|
export class EntityCanClimbComponent extends IEntityComponent {
|
|
3372
|
+
/**
|
|
3373
|
+
* Identifier of this component. Should always be
|
|
3374
|
+
* minecraft:can_climb.
|
|
3375
|
+
*/
|
|
3286
3376
|
readonly typeId: string;
|
|
3377
|
+
/**
|
|
3378
|
+
* Identifier of this component. Should always be
|
|
3379
|
+
* minecraft:can_climb.
|
|
3380
|
+
*/
|
|
3287
3381
|
static readonly componentId = 'minecraft:can_climb';
|
|
3288
3382
|
protected constructor();
|
|
3289
3383
|
}
|
|
@@ -3293,7 +3387,15 @@ export class EntityCanClimbComponent extends IEntityComponent {
|
|
|
3293
3387
|
* solid block is required underneath it.
|
|
3294
3388
|
*/
|
|
3295
3389
|
export class EntityCanFlyComponent extends IEntityComponent {
|
|
3390
|
+
/**
|
|
3391
|
+
* Identifier of this component. Should always be
|
|
3392
|
+
* minecraft:can_fly.
|
|
3393
|
+
*/
|
|
3296
3394
|
readonly typeId: string;
|
|
3395
|
+
/**
|
|
3396
|
+
* Identifier of this component. Should always be
|
|
3397
|
+
* minecraft:can_fly.
|
|
3398
|
+
*/
|
|
3297
3399
|
static readonly componentId = 'minecraft:can_fly';
|
|
3298
3400
|
protected constructor();
|
|
3299
3401
|
}
|
|
@@ -3302,7 +3404,15 @@ export class EntityCanFlyComponent extends IEntityComponent {
|
|
|
3302
3404
|
* power jump like the horse does within Minecraft.
|
|
3303
3405
|
*/
|
|
3304
3406
|
export class EntityCanPowerJumpComponent extends IEntityComponent {
|
|
3407
|
+
/**
|
|
3408
|
+
* Identifier of this component. Should always be
|
|
3409
|
+
* minecraft:can_power_jump.
|
|
3410
|
+
*/
|
|
3305
3411
|
readonly typeId: string;
|
|
3412
|
+
/**
|
|
3413
|
+
* Identifier of this component. Should always be
|
|
3414
|
+
* minecraft:can_power_jump.
|
|
3415
|
+
*/
|
|
3306
3416
|
static readonly componentId = 'minecraft:can_power_jump';
|
|
3307
3417
|
protected constructor();
|
|
3308
3418
|
}
|
|
@@ -3311,11 +3421,19 @@ export class EntityCanPowerJumpComponent extends IEntityComponent {
|
|
|
3311
3421
|
* that have predefined color values (sheep, llama, shulker).
|
|
3312
3422
|
*/
|
|
3313
3423
|
export class EntityColorComponent extends IEntityComponent {
|
|
3424
|
+
/**
|
|
3425
|
+
* Identifier of this component. Should always be
|
|
3426
|
+
* minecraft:color.
|
|
3427
|
+
*/
|
|
3314
3428
|
readonly typeId: string;
|
|
3315
3429
|
/**
|
|
3316
3430
|
* The palette color value of the entity.
|
|
3317
3431
|
*/
|
|
3318
3432
|
value: number;
|
|
3433
|
+
/**
|
|
3434
|
+
* Identifier of this component. Should always be
|
|
3435
|
+
* minecraft:color.
|
|
3436
|
+
*/
|
|
3319
3437
|
static readonly componentId = 'minecraft:color';
|
|
3320
3438
|
protected constructor();
|
|
3321
3439
|
}
|
|
@@ -3435,7 +3553,15 @@ export class EntityEventOptions {
|
|
|
3435
3553
|
* doesn't take damage from fire.
|
|
3436
3554
|
*/
|
|
3437
3555
|
export class EntityFireImmuneComponent extends IEntityComponent {
|
|
3556
|
+
/**
|
|
3557
|
+
* Identifier of this component. Should always be
|
|
3558
|
+
* minecraft:fire_immune.
|
|
3559
|
+
*/
|
|
3438
3560
|
readonly typeId: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* Identifier of this component. Should always be
|
|
3563
|
+
* minecraft:fire_immune.
|
|
3564
|
+
*/
|
|
3439
3565
|
static readonly componentId = 'minecraft:fire_immune';
|
|
3440
3566
|
protected constructor();
|
|
3441
3567
|
}
|
|
@@ -3444,7 +3570,15 @@ export class EntityFireImmuneComponent extends IEntityComponent {
|
|
|
3444
3570
|
* float in liquid blocks.
|
|
3445
3571
|
*/
|
|
3446
3572
|
export class EntityFloatsInLiquidComponent extends IEntityComponent {
|
|
3573
|
+
/**
|
|
3574
|
+
* Identifier of this component. Should always be
|
|
3575
|
+
* minecraft:floats_in_liquid.
|
|
3576
|
+
*/
|
|
3447
3577
|
readonly typeId: string;
|
|
3578
|
+
/**
|
|
3579
|
+
* Identifier of this component. Should always be
|
|
3580
|
+
* minecraft:floats_in_liquid.
|
|
3581
|
+
*/
|
|
3448
3582
|
static readonly componentId = 'minecraft:floats_in_liquid';
|
|
3449
3583
|
protected constructor();
|
|
3450
3584
|
}
|
|
@@ -3452,11 +3586,19 @@ export class EntityFloatsInLiquidComponent extends IEntityComponent {
|
|
|
3452
3586
|
* Represents the flying speed of an entity.
|
|
3453
3587
|
*/
|
|
3454
3588
|
export class EntityFlyingSpeedComponent extends IEntityComponent {
|
|
3589
|
+
/**
|
|
3590
|
+
* Identifier of this component. Should always be
|
|
3591
|
+
* minecraft:flying_speed.
|
|
3592
|
+
*/
|
|
3455
3593
|
readonly typeId: string;
|
|
3456
3594
|
/**
|
|
3457
3595
|
* Speed while flying value of the entity.
|
|
3458
3596
|
*/
|
|
3459
3597
|
value: number;
|
|
3598
|
+
/**
|
|
3599
|
+
* Identifier of this component. Should always be
|
|
3600
|
+
* minecraft:flying_speed.
|
|
3601
|
+
*/
|
|
3460
3602
|
static readonly componentId = 'minecraft:flying_speed';
|
|
3461
3603
|
protected constructor();
|
|
3462
3604
|
}
|
|
@@ -3464,6 +3606,10 @@ export class EntityFlyingSpeedComponent extends IEntityComponent {
|
|
|
3464
3606
|
* Defines how much friction affects this entity.
|
|
3465
3607
|
*/
|
|
3466
3608
|
export class EntityFrictionModifierComponent extends IEntityComponent {
|
|
3609
|
+
/**
|
|
3610
|
+
* Identifier of this component. Should always be
|
|
3611
|
+
* minecraft:friction_modifier.
|
|
3612
|
+
*/
|
|
3467
3613
|
readonly typeId: string;
|
|
3468
3614
|
/**
|
|
3469
3615
|
* The higher the number, the more the friction affects this
|
|
@@ -3471,6 +3617,10 @@ export class EntityFrictionModifierComponent extends IEntityComponent {
|
|
|
3471
3617
|
* means twice as much.
|
|
3472
3618
|
*/
|
|
3473
3619
|
value: number;
|
|
3620
|
+
/**
|
|
3621
|
+
* Identifier of this component. Should always be
|
|
3622
|
+
* minecraft:friction_modifier.
|
|
3623
|
+
*/
|
|
3474
3624
|
static readonly componentId = 'minecraft:friction_modifier';
|
|
3475
3625
|
protected constructor();
|
|
3476
3626
|
}
|
|
@@ -3479,12 +3629,20 @@ export class EntityFrictionModifierComponent extends IEntityComponent {
|
|
|
3479
3629
|
* at.
|
|
3480
3630
|
*/
|
|
3481
3631
|
export class EntityGroundOffsetComponent extends IEntityComponent {
|
|
3632
|
+
/**
|
|
3633
|
+
* Identifier of this component. Should always be
|
|
3634
|
+
* minecraft:ground_offset.
|
|
3635
|
+
*/
|
|
3482
3636
|
readonly typeId: string;
|
|
3483
3637
|
/**
|
|
3484
3638
|
* The value of the entity's offset from the terrain, in
|
|
3485
3639
|
* blocks.
|
|
3486
3640
|
*/
|
|
3487
3641
|
value: number;
|
|
3642
|
+
/**
|
|
3643
|
+
* Identifier of this component. Should always be
|
|
3644
|
+
* minecraft:ground_offset.
|
|
3645
|
+
*/
|
|
3488
3646
|
static readonly componentId = 'minecraft:ground_offset';
|
|
3489
3647
|
protected constructor();
|
|
3490
3648
|
}
|
|
@@ -3508,7 +3666,15 @@ export class EntityHealableComponent extends IEntityComponent {
|
|
|
3508
3666
|
* @throws This property can throw when used.
|
|
3509
3667
|
*/
|
|
3510
3668
|
readonly items: FeedItem[];
|
|
3669
|
+
/**
|
|
3670
|
+
* Identifier of this component. Should always be
|
|
3671
|
+
* minecraft:healable.
|
|
3672
|
+
*/
|
|
3511
3673
|
readonly typeId: string;
|
|
3674
|
+
/**
|
|
3675
|
+
* Identifier of this component. Should always be
|
|
3676
|
+
* minecraft:healable.
|
|
3677
|
+
*/
|
|
3512
3678
|
static readonly componentId = 'minecraft:healable';
|
|
3513
3679
|
protected constructor();
|
|
3514
3680
|
}
|
|
@@ -3522,12 +3688,20 @@ export class EntityHealthComponent extends IEntityComponent {
|
|
|
3522
3688
|
* @throws This property can throw when used.
|
|
3523
3689
|
*/
|
|
3524
3690
|
readonly current: number;
|
|
3691
|
+
/**
|
|
3692
|
+
* Identifier of this component. Should always be
|
|
3693
|
+
* minecraft:health.
|
|
3694
|
+
*/
|
|
3525
3695
|
readonly typeId: string;
|
|
3526
3696
|
/**
|
|
3527
3697
|
* Value for health as defined through entity components.
|
|
3528
3698
|
* @throws This property can throw when used.
|
|
3529
3699
|
*/
|
|
3530
3700
|
readonly value: number;
|
|
3701
|
+
/**
|
|
3702
|
+
* Identifier of this component. Should always be
|
|
3703
|
+
* minecraft:health.
|
|
3704
|
+
*/
|
|
3531
3705
|
static readonly componentId = 'minecraft:health';
|
|
3532
3706
|
/**
|
|
3533
3707
|
* @remarks
|
|
@@ -3710,7 +3884,15 @@ export class EntityInventoryComponent extends IEntityComponent {
|
|
|
3710
3884
|
* @throws This property can throw when used.
|
|
3711
3885
|
*/
|
|
3712
3886
|
readonly restrictToOwner: boolean;
|
|
3887
|
+
/**
|
|
3888
|
+
* Identifier of this component. Should always be
|
|
3889
|
+
* minecraft:inventory.
|
|
3890
|
+
*/
|
|
3713
3891
|
readonly typeId: string;
|
|
3892
|
+
/**
|
|
3893
|
+
* Identifier of this component. Should always be
|
|
3894
|
+
* minecraft:inventory.
|
|
3895
|
+
*/
|
|
3714
3896
|
static readonly componentId = 'minecraft:inventory';
|
|
3715
3897
|
protected constructor();
|
|
3716
3898
|
}
|
|
@@ -3719,7 +3901,15 @@ export class EntityInventoryComponent extends IEntityComponent {
|
|
|
3719
3901
|
* baby.
|
|
3720
3902
|
*/
|
|
3721
3903
|
export class EntityIsBabyComponent extends IEntityComponent {
|
|
3904
|
+
/**
|
|
3905
|
+
* Identifier of this component. Should always be
|
|
3906
|
+
* minecraft:is_baby.
|
|
3907
|
+
*/
|
|
3722
3908
|
readonly typeId: string;
|
|
3909
|
+
/**
|
|
3910
|
+
* Identifier of this component. Should always be
|
|
3911
|
+
* minecraft:is_baby.
|
|
3912
|
+
*/
|
|
3723
3913
|
static readonly componentId = 'minecraft:is_baby';
|
|
3724
3914
|
protected constructor();
|
|
3725
3915
|
}
|
|
@@ -3728,7 +3918,15 @@ export class EntityIsBabyComponent extends IEntityComponent {
|
|
|
3728
3918
|
* charged.
|
|
3729
3919
|
*/
|
|
3730
3920
|
export class EntityIsChargedComponent extends IEntityComponent {
|
|
3921
|
+
/**
|
|
3922
|
+
* Identifier of this component. Should always be
|
|
3923
|
+
* minecraft:is_charged.
|
|
3924
|
+
*/
|
|
3731
3925
|
readonly typeId: string;
|
|
3926
|
+
/**
|
|
3927
|
+
* Identifier of this component. Should always be
|
|
3928
|
+
* minecraft:is_charged.
|
|
3929
|
+
*/
|
|
3732
3930
|
static readonly componentId = 'minecraft:is_charged';
|
|
3733
3931
|
protected constructor();
|
|
3734
3932
|
}
|
|
@@ -3737,7 +3935,15 @@ export class EntityIsChargedComponent extends IEntityComponent {
|
|
|
3737
3935
|
* currently carrying a chest.
|
|
3738
3936
|
*/
|
|
3739
3937
|
export class EntityIsChestedComponent extends IEntityComponent {
|
|
3938
|
+
/**
|
|
3939
|
+
* Identifier of this component. Should always be
|
|
3940
|
+
* minecraft:is_chested.
|
|
3941
|
+
*/
|
|
3740
3942
|
readonly typeId: string;
|
|
3943
|
+
/**
|
|
3944
|
+
* Identifier of this component. Should always be
|
|
3945
|
+
* minecraft:is_chested.
|
|
3946
|
+
*/
|
|
3741
3947
|
static readonly componentId = 'minecraft:is_chested';
|
|
3742
3948
|
protected constructor();
|
|
3743
3949
|
}
|
|
@@ -3746,7 +3952,15 @@ export class EntityIsChestedComponent extends IEntityComponent {
|
|
|
3746
3952
|
* on this entity to change its color.
|
|
3747
3953
|
*/
|
|
3748
3954
|
export class EntityIsDyableComponent extends IEntityComponent {
|
|
3955
|
+
/**
|
|
3956
|
+
* Identifier of this component. Should always be
|
|
3957
|
+
* minecraft:is_dyeable.
|
|
3958
|
+
*/
|
|
3749
3959
|
readonly typeId: string;
|
|
3960
|
+
/**
|
|
3961
|
+
* Identifier of this component. Should always be
|
|
3962
|
+
* minecraft:is_dyeable.
|
|
3963
|
+
*/
|
|
3750
3964
|
static readonly componentId = 'minecraft:is_dyeable';
|
|
3751
3965
|
protected constructor();
|
|
3752
3966
|
}
|
|
@@ -3755,7 +3969,15 @@ export class EntityIsDyableComponent extends IEntityComponent {
|
|
|
3755
3969
|
* hide from hostile mobs while invisible.
|
|
3756
3970
|
*/
|
|
3757
3971
|
export class EntityIsHiddenWhenInvisibleComponent extends IEntityComponent {
|
|
3972
|
+
/**
|
|
3973
|
+
* Identifier of this component. Should always be
|
|
3974
|
+
* minecraft:is_hidden_when_invisible.
|
|
3975
|
+
*/
|
|
3758
3976
|
readonly typeId: string;
|
|
3977
|
+
/**
|
|
3978
|
+
* Identifier of this component. Should always be
|
|
3979
|
+
* minecraft:is_hidden_when_invisible.
|
|
3980
|
+
*/
|
|
3759
3981
|
static readonly componentId = 'minecraft:is_hidden_when_invisible';
|
|
3760
3982
|
protected constructor();
|
|
3761
3983
|
}
|
|
@@ -3764,7 +3986,15 @@ export class EntityIsHiddenWhenInvisibleComponent extends IEntityComponent {
|
|
|
3764
3986
|
* currently on fire.
|
|
3765
3987
|
*/
|
|
3766
3988
|
export class EntityIsIgnitedComponent extends IEntityComponent {
|
|
3989
|
+
/**
|
|
3990
|
+
* Identifier of this component. Should always be
|
|
3991
|
+
* minecraft:is_ignited.
|
|
3992
|
+
*/
|
|
3767
3993
|
readonly typeId: string;
|
|
3994
|
+
/**
|
|
3995
|
+
* Identifier of this component. Should always be
|
|
3996
|
+
* minecraft:is_ignited.
|
|
3997
|
+
*/
|
|
3768
3998
|
static readonly componentId = 'minecraft:is_ignited';
|
|
3769
3999
|
protected constructor();
|
|
3770
4000
|
}
|
|
@@ -3773,7 +4003,15 @@ export class EntityIsIgnitedComponent extends IEntityComponent {
|
|
|
3773
4003
|
* illager captain.
|
|
3774
4004
|
*/
|
|
3775
4005
|
export class EntityIsIllagerCaptainComponent extends IEntityComponent {
|
|
4006
|
+
/**
|
|
4007
|
+
* Identifier of this component. Should always be
|
|
4008
|
+
* minecraft:is_illager_captain.
|
|
4009
|
+
*/
|
|
3776
4010
|
readonly typeId: string;
|
|
4011
|
+
/**
|
|
4012
|
+
* Identifier of this component. Should always be
|
|
4013
|
+
* minecraft:is_illager_captain.
|
|
4014
|
+
*/
|
|
3777
4015
|
static readonly componentId = 'minecraft:is_illager_captain';
|
|
3778
4016
|
protected constructor();
|
|
3779
4017
|
}
|
|
@@ -3782,7 +4020,15 @@ export class EntityIsIllagerCaptainComponent extends IEntityComponent {
|
|
|
3782
4020
|
* currently saddled.
|
|
3783
4021
|
*/
|
|
3784
4022
|
export class EntityIsSaddledComponent extends IEntityComponent {
|
|
4023
|
+
/**
|
|
4024
|
+
* Identifier of this component. Should always be
|
|
4025
|
+
* minecraft:is_saddled.
|
|
4026
|
+
*/
|
|
3785
4027
|
readonly typeId: string;
|
|
4028
|
+
/**
|
|
4029
|
+
* Identifier of this component. Should always be
|
|
4030
|
+
* minecraft:is_saddled.
|
|
4031
|
+
*/
|
|
3786
4032
|
static readonly componentId = 'minecraft:is_saddled';
|
|
3787
4033
|
protected constructor();
|
|
3788
4034
|
}
|
|
@@ -3791,7 +4037,15 @@ export class EntityIsSaddledComponent extends IEntityComponent {
|
|
|
3791
4037
|
* currently shaking.
|
|
3792
4038
|
*/
|
|
3793
4039
|
export class EntityIsShakingComponent extends IEntityComponent {
|
|
4040
|
+
/**
|
|
4041
|
+
* Identifier of this component. Should always be
|
|
4042
|
+
* minecraft:is_shaking.
|
|
4043
|
+
*/
|
|
3794
4044
|
readonly typeId: string;
|
|
4045
|
+
/**
|
|
4046
|
+
* Identifier of this component. Should always be
|
|
4047
|
+
* minecraft:is_shaking.
|
|
4048
|
+
*/
|
|
3795
4049
|
static readonly componentId = 'minecraft:is_shaking';
|
|
3796
4050
|
protected constructor();
|
|
3797
4051
|
}
|
|
@@ -3800,7 +4054,15 @@ export class EntityIsShakingComponent extends IEntityComponent {
|
|
|
3800
4054
|
* currently sheared.
|
|
3801
4055
|
*/
|
|
3802
4056
|
export class EntityIsShearedComponent extends IEntityComponent {
|
|
4057
|
+
/**
|
|
4058
|
+
* Identifier of this component. Should always be
|
|
4059
|
+
* minecraft:is_sheared.
|
|
4060
|
+
*/
|
|
3803
4061
|
readonly typeId: string;
|
|
4062
|
+
/**
|
|
4063
|
+
* Identifier of this component. Should always be
|
|
4064
|
+
* minecraft:is_sheared.
|
|
4065
|
+
*/
|
|
3804
4066
|
static readonly componentId = 'minecraft:is_sheared';
|
|
3805
4067
|
protected constructor();
|
|
3806
4068
|
}
|
|
@@ -3809,7 +4071,15 @@ export class EntityIsShearedComponent extends IEntityComponent {
|
|
|
3809
4071
|
* stacked.
|
|
3810
4072
|
*/
|
|
3811
4073
|
export class EntityIsStackableComponent extends IEntityComponent {
|
|
4074
|
+
/**
|
|
4075
|
+
* Identifier of this component. Should always be
|
|
4076
|
+
* minecraft:is_stackable.
|
|
4077
|
+
*/
|
|
3812
4078
|
readonly typeId: string;
|
|
4079
|
+
/**
|
|
4080
|
+
* Identifier of this component. Should always be
|
|
4081
|
+
* minecraft:is_stackable.
|
|
4082
|
+
*/
|
|
3813
4083
|
static readonly componentId = 'minecraft:is_stackable';
|
|
3814
4084
|
protected constructor();
|
|
3815
4085
|
}
|
|
@@ -3818,7 +4088,15 @@ export class EntityIsStackableComponent extends IEntityComponent {
|
|
|
3818
4088
|
* currently stunned.
|
|
3819
4089
|
*/
|
|
3820
4090
|
export class EntityIsStunnedComponent extends IEntityComponent {
|
|
4091
|
+
/**
|
|
4092
|
+
* Identifier of this component. Should always be
|
|
4093
|
+
* minecraft:is_stunned.
|
|
4094
|
+
*/
|
|
3821
4095
|
readonly typeId: string;
|
|
4096
|
+
/**
|
|
4097
|
+
* Identifier of this component. Should always be
|
|
4098
|
+
* minecraft:is_stunned.
|
|
4099
|
+
*/
|
|
3822
4100
|
static readonly componentId = 'minecraft:is_stunned';
|
|
3823
4101
|
protected constructor();
|
|
3824
4102
|
}
|
|
@@ -3827,7 +4105,15 @@ export class EntityIsStunnedComponent extends IEntityComponent {
|
|
|
3827
4105
|
* currently tamed.
|
|
3828
4106
|
*/
|
|
3829
4107
|
export class EntityIsTamedComponent extends IEntityComponent {
|
|
4108
|
+
/**
|
|
4109
|
+
* Identifier of this component. Should always be
|
|
4110
|
+
* minecraft:is_tamed.
|
|
4111
|
+
*/
|
|
3830
4112
|
readonly typeId: string;
|
|
4113
|
+
/**
|
|
4114
|
+
* Identifier of this component. Should always be
|
|
4115
|
+
* minecraft:is_tamed.
|
|
4116
|
+
*/
|
|
3831
4117
|
static readonly componentId = 'minecraft:is_tamed';
|
|
3832
4118
|
protected constructor();
|
|
3833
4119
|
}
|
|
@@ -3843,7 +4129,13 @@ export class EntityItemComponent extends IEntityComponent {
|
|
|
3843
4129
|
* @throws This property can throw when used.
|
|
3844
4130
|
*/
|
|
3845
4131
|
readonly itemStack: ItemStack;
|
|
4132
|
+
/**
|
|
4133
|
+
* Identifier of this component.
|
|
4134
|
+
*/
|
|
3846
4135
|
readonly typeId: string;
|
|
4136
|
+
/**
|
|
4137
|
+
* Identifier of this component.
|
|
4138
|
+
*/
|
|
3847
4139
|
static readonly componentId = 'minecraft:item';
|
|
3848
4140
|
protected constructor();
|
|
3849
4141
|
}
|
|
@@ -3853,7 +4145,7 @@ export class EntityItemComponent extends IEntityComponent {
|
|
|
3853
4145
|
* statements, Array.from(iterator), and more.
|
|
3854
4146
|
*/
|
|
3855
4147
|
export class EntityIterator implements Iterable<Entity> {
|
|
3856
|
-
|
|
4148
|
+
[Symbol.iterator](): Iterator<Entity>;
|
|
3857
4149
|
/**
|
|
3858
4150
|
* @remarks
|
|
3859
4151
|
* Retrieves the next item in this iteration. The resulting
|
|
@@ -3873,6 +4165,10 @@ export class EntityLavaMovementComponent extends IEntityComponent {
|
|
|
3873
4165
|
* @throws This property can throw when used.
|
|
3874
4166
|
*/
|
|
3875
4167
|
readonly current: number;
|
|
4168
|
+
/**
|
|
4169
|
+
* Identifier of this component. Should always be
|
|
4170
|
+
* minecraft:lava_movement.
|
|
4171
|
+
*/
|
|
3876
4172
|
readonly typeId: string;
|
|
3877
4173
|
/**
|
|
3878
4174
|
* Value for movement speed on lava as defined through entity
|
|
@@ -3880,6 +4176,10 @@ export class EntityLavaMovementComponent extends IEntityComponent {
|
|
|
3880
4176
|
* @throws This property can throw when used.
|
|
3881
4177
|
*/
|
|
3882
4178
|
readonly value: number;
|
|
4179
|
+
/**
|
|
4180
|
+
* Identifier of this component. Should always be
|
|
4181
|
+
* minecraft:lava_movement.
|
|
4182
|
+
*/
|
|
3883
4183
|
static readonly componentId = 'minecraft:lava_movement';
|
|
3884
4184
|
/**
|
|
3885
4185
|
* @remarks
|
|
@@ -3924,7 +4224,15 @@ export class EntityLeashableComponent extends IEntityComponent {
|
|
|
3924
4224
|
* @throws This property can throw when used.
|
|
3925
4225
|
*/
|
|
3926
4226
|
readonly softDistance: number;
|
|
4227
|
+
/**
|
|
4228
|
+
* Identifier of this component. Should always be
|
|
4229
|
+
* minecraft:leashable.
|
|
4230
|
+
*/
|
|
3927
4231
|
readonly typeId: string;
|
|
4232
|
+
/**
|
|
4233
|
+
* Identifier of this component. Should always be
|
|
4234
|
+
* minecraft:leashable.
|
|
4235
|
+
*/
|
|
3928
4236
|
static readonly componentId = 'minecraft:leashable';
|
|
3929
4237
|
/**
|
|
3930
4238
|
* @remarks
|
|
@@ -3947,12 +4255,20 @@ export class EntityLeashableComponent extends IEntityComponent {
|
|
|
3947
4255
|
* differentiate variants.
|
|
3948
4256
|
*/
|
|
3949
4257
|
export class EntityMarkVariantComponent extends IEntityComponent {
|
|
4258
|
+
/**
|
|
4259
|
+
* Identifier of this component. Should always be
|
|
4260
|
+
* minecraft:mark_variant.
|
|
4261
|
+
*/
|
|
3950
4262
|
readonly typeId: string;
|
|
3951
4263
|
/**
|
|
3952
4264
|
* The identifier of the variant. By convention, 0 is the
|
|
3953
4265
|
* identifier of the base entity.
|
|
3954
4266
|
*/
|
|
3955
4267
|
value: number;
|
|
4268
|
+
/**
|
|
4269
|
+
* Identifier of this component. Should always be
|
|
4270
|
+
* minecraft:mark_variant.
|
|
4271
|
+
*/
|
|
3956
4272
|
static readonly componentId = 'minecraft:mark_variant';
|
|
3957
4273
|
protected constructor();
|
|
3958
4274
|
}
|
|
@@ -3961,7 +4277,15 @@ export class EntityMarkVariantComponent extends IEntityComponent {
|
|
|
3961
4277
|
* entity that mounts it.
|
|
3962
4278
|
*/
|
|
3963
4279
|
export class EntityMountTamingComponent extends IEntityComponent {
|
|
4280
|
+
/**
|
|
4281
|
+
* Identifier of this component. Should always be
|
|
4282
|
+
* minecraft:mount_taming.
|
|
4283
|
+
*/
|
|
3964
4284
|
readonly typeId: string;
|
|
4285
|
+
/**
|
|
4286
|
+
* Identifier of this component. Should always be
|
|
4287
|
+
* minecraft:mount_taming.
|
|
4288
|
+
*/
|
|
3965
4289
|
static readonly componentId = 'minecraft:tamemount';
|
|
3966
4290
|
/**
|
|
3967
4291
|
* @remarks
|
|
@@ -3983,7 +4307,15 @@ export class EntityMovementAmphibiousComponent extends IEntityComponent {
|
|
|
3983
4307
|
* @throws This property can throw when used.
|
|
3984
4308
|
*/
|
|
3985
4309
|
readonly maxTurn: number;
|
|
4310
|
+
/**
|
|
4311
|
+
* Identifier of this component. Should always be
|
|
4312
|
+
* minecraft:movement.amphibious.
|
|
4313
|
+
*/
|
|
3986
4314
|
readonly typeId: string;
|
|
4315
|
+
/**
|
|
4316
|
+
* Identifier of this component. Should always be
|
|
4317
|
+
* minecraft:movement.amphibious.
|
|
4318
|
+
*/
|
|
3987
4319
|
static readonly componentId = 'minecraft:movement.amphibious';
|
|
3988
4320
|
protected constructor();
|
|
3989
4321
|
}
|
|
@@ -3996,7 +4328,15 @@ export class EntityMovementBasicComponent extends IEntityComponent {
|
|
|
3996
4328
|
* @throws This property can throw when used.
|
|
3997
4329
|
*/
|
|
3998
4330
|
readonly maxTurn: number;
|
|
4331
|
+
/**
|
|
4332
|
+
* Identifier of this component. Should always be
|
|
4333
|
+
* minecraft:movement.basic.
|
|
4334
|
+
*/
|
|
3999
4335
|
readonly typeId: string;
|
|
4336
|
+
/**
|
|
4337
|
+
* Identifier of this component. Should always be
|
|
4338
|
+
* minecraft:movement.basic.
|
|
4339
|
+
*/
|
|
4000
4340
|
static readonly componentId = 'minecraft:movement.basic';
|
|
4001
4341
|
protected constructor();
|
|
4002
4342
|
}
|
|
@@ -4010,6 +4350,10 @@ export class EntityMovementComponent extends IEntityComponent {
|
|
|
4010
4350
|
* @throws This property can throw when used.
|
|
4011
4351
|
*/
|
|
4012
4352
|
readonly current: number;
|
|
4353
|
+
/**
|
|
4354
|
+
* Identifier of this component. Should always be
|
|
4355
|
+
* minecraft:movement.
|
|
4356
|
+
*/
|
|
4013
4357
|
readonly typeId: string;
|
|
4014
4358
|
/**
|
|
4015
4359
|
* Value for default movement speed as defined through entity
|
|
@@ -4017,6 +4361,10 @@ export class EntityMovementComponent extends IEntityComponent {
|
|
|
4017
4361
|
* @throws This property can throw when used.
|
|
4018
4362
|
*/
|
|
4019
4363
|
readonly value: number;
|
|
4364
|
+
/**
|
|
4365
|
+
* Identifier of this component. Should always be
|
|
4366
|
+
* minecraft:movement.
|
|
4367
|
+
*/
|
|
4020
4368
|
static readonly componentId = 'minecraft:movement';
|
|
4021
4369
|
/**
|
|
4022
4370
|
* @remarks
|
|
@@ -4057,7 +4405,15 @@ export class EntityMovementFlyComponent extends IEntityComponent {
|
|
|
4057
4405
|
* @throws This property can throw when used.
|
|
4058
4406
|
*/
|
|
4059
4407
|
readonly maxTurn: number;
|
|
4408
|
+
/**
|
|
4409
|
+
* Identifier of this component. Should always be
|
|
4410
|
+
* minecraft:movement.fly.
|
|
4411
|
+
*/
|
|
4060
4412
|
readonly typeId: string;
|
|
4413
|
+
/**
|
|
4414
|
+
* Identifier of this component. Should always be
|
|
4415
|
+
* minecraft:movement.fly.
|
|
4416
|
+
*/
|
|
4061
4417
|
static readonly componentId = 'minecraft:movement.fly';
|
|
4062
4418
|
protected constructor();
|
|
4063
4419
|
}
|
|
@@ -4071,7 +4427,15 @@ export class EntityMovementGenericComponent extends IEntityComponent {
|
|
|
4071
4427
|
* @throws This property can throw when used.
|
|
4072
4428
|
*/
|
|
4073
4429
|
readonly maxTurn: number;
|
|
4430
|
+
/**
|
|
4431
|
+
* Identifier of this component. Should always be
|
|
4432
|
+
* minecraft:movement.generic.
|
|
4433
|
+
*/
|
|
4074
4434
|
readonly typeId: string;
|
|
4435
|
+
/**
|
|
4436
|
+
* Identifier of this component. Should always be
|
|
4437
|
+
* minecraft:movement.generic.
|
|
4438
|
+
*/
|
|
4075
4439
|
static readonly componentId = 'minecraft:movement.generic';
|
|
4076
4440
|
protected constructor();
|
|
4077
4441
|
}
|
|
@@ -4094,7 +4458,15 @@ export class EntityMovementGlideComponent extends IEntityComponent {
|
|
|
4094
4458
|
* @throws This property can throw when used.
|
|
4095
4459
|
*/
|
|
4096
4460
|
readonly startSpeed: number;
|
|
4461
|
+
/**
|
|
4462
|
+
* Identifier of this component. Should always be
|
|
4463
|
+
* minecraft:movement.glide.
|
|
4464
|
+
*/
|
|
4097
4465
|
readonly typeId: string;
|
|
4466
|
+
/**
|
|
4467
|
+
* Identifier of this component. Should always be
|
|
4468
|
+
* minecraft:movement.glide.
|
|
4469
|
+
*/
|
|
4098
4470
|
static readonly componentId = 'minecraft:movement.glide';
|
|
4099
4471
|
protected constructor();
|
|
4100
4472
|
}
|
|
@@ -4107,7 +4479,15 @@ export class EntityMovementHoverComponent extends IEntityComponent {
|
|
|
4107
4479
|
* @throws This property can throw when used.
|
|
4108
4480
|
*/
|
|
4109
4481
|
readonly maxTurn: number;
|
|
4482
|
+
/**
|
|
4483
|
+
* Identifier of this component. Should always be
|
|
4484
|
+
* minecraft:movement.hover.
|
|
4485
|
+
*/
|
|
4110
4486
|
readonly typeId: string;
|
|
4487
|
+
/**
|
|
4488
|
+
* Identifier of this component. Should always be
|
|
4489
|
+
* minecraft:movement.hover.
|
|
4490
|
+
*/
|
|
4111
4491
|
static readonly componentId = 'minecraft:movement.hover';
|
|
4112
4492
|
protected constructor();
|
|
4113
4493
|
}
|
|
@@ -4121,7 +4501,15 @@ export class EntityMovementJumpComponent extends IEntityComponent {
|
|
|
4121
4501
|
* @throws This property can throw when used.
|
|
4122
4502
|
*/
|
|
4123
4503
|
readonly maxTurn: number;
|
|
4504
|
+
/**
|
|
4505
|
+
* Identifier of this component. Should always be
|
|
4506
|
+
* minecraft:movement.jump.
|
|
4507
|
+
*/
|
|
4124
4508
|
readonly typeId: string;
|
|
4509
|
+
/**
|
|
4510
|
+
* Identifier of this component. Should always be
|
|
4511
|
+
* minecraft:movement.jump.
|
|
4512
|
+
*/
|
|
4125
4513
|
static readonly componentId = 'minecraft:movement.jump';
|
|
4126
4514
|
protected constructor();
|
|
4127
4515
|
}
|
|
@@ -4135,7 +4523,15 @@ export class EntityMovementSkipComponent extends IEntityComponent {
|
|
|
4135
4523
|
* @throws This property can throw when used.
|
|
4136
4524
|
*/
|
|
4137
4525
|
readonly maxTurn: number;
|
|
4526
|
+
/**
|
|
4527
|
+
* Identifier of this component. Should always be
|
|
4528
|
+
* minecraft:movement.skip.
|
|
4529
|
+
*/
|
|
4138
4530
|
readonly typeId: string;
|
|
4531
|
+
/**
|
|
4532
|
+
* Identifier of this component. Should always be
|
|
4533
|
+
* minecraft:movement.skip.
|
|
4534
|
+
*/
|
|
4139
4535
|
static readonly componentId = 'minecraft:movement.skip';
|
|
4140
4536
|
protected constructor();
|
|
4141
4537
|
}
|
|
@@ -4159,7 +4555,15 @@ export class EntityMovementSwayComponent extends IEntityComponent {
|
|
|
4159
4555
|
* @throws This property can throw when used.
|
|
4160
4556
|
*/
|
|
4161
4557
|
readonly swayFrequency: number;
|
|
4558
|
+
/**
|
|
4559
|
+
* Identifier of this component. Should always be
|
|
4560
|
+
* minecraft:movement.sway.
|
|
4561
|
+
*/
|
|
4162
4562
|
readonly typeId: string;
|
|
4563
|
+
/**
|
|
4564
|
+
* Identifier of this component. Should always be
|
|
4565
|
+
* minecraft:movement.sway.
|
|
4566
|
+
*/
|
|
4163
4567
|
static readonly componentId = 'minecraft:movement.sway';
|
|
4164
4568
|
protected constructor();
|
|
4165
4569
|
}
|
|
@@ -4278,7 +4682,15 @@ export class EntityNavigationClimbComponent extends IEntityComponent {
|
|
|
4278
4682
|
* @throws This property can throw when used.
|
|
4279
4683
|
*/
|
|
4280
4684
|
readonly isAmphibious: boolean;
|
|
4685
|
+
/**
|
|
4686
|
+
* Identifier of this component. Should always be
|
|
4687
|
+
* minecraft:navigation.climb.
|
|
4688
|
+
*/
|
|
4281
4689
|
readonly typeId: string;
|
|
4690
|
+
/**
|
|
4691
|
+
* Identifier of this component. Should always be
|
|
4692
|
+
* minecraft:navigation.climb.
|
|
4693
|
+
*/
|
|
4282
4694
|
static readonly componentId = 'minecraft:navigation.climb';
|
|
4283
4695
|
protected constructor();
|
|
4284
4696
|
}
|
|
@@ -4397,7 +4809,15 @@ export class EntityNavigationFloatComponent extends IEntityComponent {
|
|
|
4397
4809
|
* @throws This property can throw when used.
|
|
4398
4810
|
*/
|
|
4399
4811
|
readonly isAmphibious: boolean;
|
|
4812
|
+
/**
|
|
4813
|
+
* Identifier of this component. Should always be
|
|
4814
|
+
* minecraft:navigation.float.
|
|
4815
|
+
*/
|
|
4400
4816
|
readonly typeId: string;
|
|
4817
|
+
/**
|
|
4818
|
+
* Identifier of this component. Should always be
|
|
4819
|
+
* minecraft:navigation.float.
|
|
4820
|
+
*/
|
|
4401
4821
|
static readonly componentId = 'minecraft:navigation.float';
|
|
4402
4822
|
protected constructor();
|
|
4403
4823
|
}
|
|
@@ -4516,7 +4936,15 @@ export class EntityNavigationFlyComponent extends IEntityComponent {
|
|
|
4516
4936
|
* @throws This property can throw when used.
|
|
4517
4937
|
*/
|
|
4518
4938
|
readonly isAmphibious: boolean;
|
|
4939
|
+
/**
|
|
4940
|
+
* Identifier of this component. Should always be
|
|
4941
|
+
* minecraft:navigation.fly.
|
|
4942
|
+
*/
|
|
4519
4943
|
readonly typeId: string;
|
|
4944
|
+
/**
|
|
4945
|
+
* Identifier of this component. Should always be
|
|
4946
|
+
* minecraft:navigation.fly.
|
|
4947
|
+
*/
|
|
4520
4948
|
static readonly componentId = 'minecraft:navigation.fly';
|
|
4521
4949
|
protected constructor();
|
|
4522
4950
|
}
|
|
@@ -4636,7 +5064,15 @@ export class EntityNavigationGenericComponent extends IEntityComponent {
|
|
|
4636
5064
|
* @throws This property can throw when used.
|
|
4637
5065
|
*/
|
|
4638
5066
|
readonly isAmphibious: boolean;
|
|
5067
|
+
/**
|
|
5068
|
+
* Identifier of this component. Should always be
|
|
5069
|
+
* minecraft:navigation.generic.
|
|
5070
|
+
*/
|
|
4639
5071
|
readonly typeId: string;
|
|
5072
|
+
/**
|
|
5073
|
+
* Identifier of this component. Should always be
|
|
5074
|
+
* minecraft:navigation.generic.
|
|
5075
|
+
*/
|
|
4640
5076
|
static readonly componentId = 'minecraft:navigation.generic';
|
|
4641
5077
|
protected constructor();
|
|
4642
5078
|
}
|
|
@@ -4756,7 +5192,15 @@ export class EntityNavigationHoverComponent extends IEntityComponent {
|
|
|
4756
5192
|
* @throws This property can throw when used.
|
|
4757
5193
|
*/
|
|
4758
5194
|
readonly isAmphibious: boolean;
|
|
5195
|
+
/**
|
|
5196
|
+
* Identifier of this component. Should always be
|
|
5197
|
+
* minecraft:navigation.hover.
|
|
5198
|
+
*/
|
|
4759
5199
|
readonly typeId: string;
|
|
5200
|
+
/**
|
|
5201
|
+
* Identifier of this component. Should always be
|
|
5202
|
+
* minecraft:navigation.hover.
|
|
5203
|
+
*/
|
|
4760
5204
|
static readonly componentId = 'minecraft:navigation.hover';
|
|
4761
5205
|
protected constructor();
|
|
4762
5206
|
}
|
|
@@ -4875,7 +5319,15 @@ export class EntityNavigationWalkComponent extends IEntityComponent {
|
|
|
4875
5319
|
* @throws This property can throw when used.
|
|
4876
5320
|
*/
|
|
4877
5321
|
readonly isAmphibious: boolean;
|
|
5322
|
+
/**
|
|
5323
|
+
* Identifier of this component. Should always be
|
|
5324
|
+
* minecraft:navigation.swim.
|
|
5325
|
+
*/
|
|
4878
5326
|
readonly typeId: string;
|
|
5327
|
+
/**
|
|
5328
|
+
* Identifier of this component. Should always be
|
|
5329
|
+
* minecraft:navigation.swim.
|
|
5330
|
+
*/
|
|
4879
5331
|
static readonly componentId = 'minecraft:navigation.walk';
|
|
4880
5332
|
protected constructor();
|
|
4881
5333
|
}
|
|
@@ -4883,11 +5335,19 @@ export class EntityNavigationWalkComponent extends IEntityComponent {
|
|
|
4883
5335
|
* Sets the distance through which the entity can push through.
|
|
4884
5336
|
*/
|
|
4885
5337
|
export class EntityPushThroughComponent extends IEntityComponent {
|
|
5338
|
+
/**
|
|
5339
|
+
* Identifier of this component. Should always be
|
|
5340
|
+
* minecraft:push_through.
|
|
5341
|
+
*/
|
|
4886
5342
|
readonly typeId: string;
|
|
4887
5343
|
/**
|
|
4888
5344
|
* The value of the entity's push-through, in blocks.
|
|
4889
5345
|
*/
|
|
4890
5346
|
value: number;
|
|
5347
|
+
/**
|
|
5348
|
+
* Identifier of this component. Should always be
|
|
5349
|
+
* minecraft:push_through.
|
|
5350
|
+
*/
|
|
4891
5351
|
static readonly componentId = 'minecraft:push_through';
|
|
4892
5352
|
protected constructor();
|
|
4893
5353
|
}
|
|
@@ -4944,7 +5404,15 @@ export class EntityRideableComponent extends IEntityComponent {
|
|
|
4944
5404
|
* @throws This property can throw when used.
|
|
4945
5405
|
*/
|
|
4946
5406
|
readonly seats: Seat[];
|
|
5407
|
+
/**
|
|
5408
|
+
* Identifier of this component. Should always be
|
|
5409
|
+
* minecraft:rideable.
|
|
5410
|
+
*/
|
|
4947
5411
|
readonly typeId: string;
|
|
5412
|
+
/**
|
|
5413
|
+
* Identifier of this component. Should always be
|
|
5414
|
+
* minecraft:rideable.
|
|
5415
|
+
*/
|
|
4948
5416
|
static readonly componentId = 'minecraft:rideable';
|
|
4949
5417
|
/**
|
|
4950
5418
|
* @remarks
|
|
@@ -4976,6 +5444,10 @@ export class EntityRideableComponent extends IEntityComponent {
|
|
|
4976
5444
|
* Sets the entity's visual size.
|
|
4977
5445
|
*/
|
|
4978
5446
|
export class EntityScaleComponent extends IEntityComponent {
|
|
5447
|
+
/**
|
|
5448
|
+
* Identifier of this component. Should always be
|
|
5449
|
+
* minecraft:scale.
|
|
5450
|
+
*/
|
|
4979
5451
|
readonly typeId: string;
|
|
4980
5452
|
/**
|
|
4981
5453
|
* The value of the scale. 1.0 means the entity will appear at
|
|
@@ -4983,6 +5455,10 @@ export class EntityScaleComponent extends IEntityComponent {
|
|
|
4983
5455
|
* make the entity bigger.
|
|
4984
5456
|
*/
|
|
4985
5457
|
value: number;
|
|
5458
|
+
/**
|
|
5459
|
+
* Identifier of this component. Should always be
|
|
5460
|
+
* minecraft:scale.
|
|
5461
|
+
*/
|
|
4986
5462
|
static readonly componentId = 'minecraft:scale';
|
|
4987
5463
|
protected constructor();
|
|
4988
5464
|
}
|
|
@@ -4991,12 +5467,20 @@ export class EntityScaleComponent extends IEntityComponent {
|
|
|
4991
5467
|
* base skins for villagers.
|
|
4992
5468
|
*/
|
|
4993
5469
|
export class EntitySkinIdComponent extends IEntityComponent {
|
|
5470
|
+
/**
|
|
5471
|
+
* Identifier of this component. Should always be
|
|
5472
|
+
* minecraft:skin_id.
|
|
5473
|
+
*/
|
|
4994
5474
|
readonly typeId: string;
|
|
4995
5475
|
/**
|
|
4996
5476
|
* The identifier of the skin. By convention, 0 is the
|
|
4997
5477
|
* identifier of the base skin.
|
|
4998
5478
|
*/
|
|
4999
5479
|
value: number;
|
|
5480
|
+
/**
|
|
5481
|
+
* Identifier of this component. Should always be
|
|
5482
|
+
* minecraft:skin_id.
|
|
5483
|
+
*/
|
|
5000
5484
|
static readonly componentId = 'minecraft:skin_id';
|
|
5001
5485
|
protected constructor();
|
|
5002
5486
|
}
|
|
@@ -5010,6 +5494,10 @@ export class EntityStrengthComponent extends IEntityComponent {
|
|
|
5010
5494
|
* @throws This property can throw when used.
|
|
5011
5495
|
*/
|
|
5012
5496
|
readonly max: number;
|
|
5497
|
+
/**
|
|
5498
|
+
* Identifier of this component. Should always be
|
|
5499
|
+
* minecraft:strength.
|
|
5500
|
+
*/
|
|
5013
5501
|
readonly typeId: string;
|
|
5014
5502
|
/**
|
|
5015
5503
|
* Current strength value of this entity, after any effects or
|
|
@@ -5017,6 +5505,10 @@ export class EntityStrengthComponent extends IEntityComponent {
|
|
|
5017
5505
|
* @throws This property can throw when used.
|
|
5018
5506
|
*/
|
|
5019
5507
|
readonly value: number;
|
|
5508
|
+
/**
|
|
5509
|
+
* Identifier of this component. Should always be
|
|
5510
|
+
* minecraft:strength.
|
|
5511
|
+
*/
|
|
5020
5512
|
static readonly componentId = 'minecraft:strength';
|
|
5021
5513
|
protected constructor();
|
|
5022
5514
|
}
|
|
@@ -5040,7 +5532,15 @@ export class EntityTameableComponent extends IEntityComponent {
|
|
|
5040
5532
|
* @throws This property can throw when used.
|
|
5041
5533
|
*/
|
|
5042
5534
|
readonly tameItems: string[];
|
|
5535
|
+
/**
|
|
5536
|
+
* Identifier of this component. Should always be
|
|
5537
|
+
* minecraft:tameable.
|
|
5538
|
+
*/
|
|
5043
5539
|
readonly typeId: string;
|
|
5540
|
+
/**
|
|
5541
|
+
* Identifier of this component. Should always be
|
|
5542
|
+
* minecraft:tameable.
|
|
5543
|
+
*/
|
|
5044
5544
|
static readonly componentId = 'minecraft:tameable';
|
|
5045
5545
|
/**
|
|
5046
5546
|
* @remarks
|
|
@@ -5064,7 +5564,7 @@ export class EntityType {
|
|
|
5064
5564
|
protected constructor();
|
|
5065
5565
|
}
|
|
5066
5566
|
export class EntityTypeIterator implements Iterable<EntityType> {
|
|
5067
|
-
|
|
5567
|
+
[Symbol.iterator](): Iterator<EntityType>;
|
|
5068
5568
|
next(): IteratorResult<EntityType>;
|
|
5069
5569
|
protected constructor();
|
|
5070
5570
|
}
|
|
@@ -5098,6 +5598,10 @@ export class EntityUnderwaterMovementComponent extends IEntityComponent {
|
|
|
5098
5598
|
* @throws This property can throw when used.
|
|
5099
5599
|
*/
|
|
5100
5600
|
readonly current: number;
|
|
5601
|
+
/**
|
|
5602
|
+
* Identifier of this component. Should always be
|
|
5603
|
+
* minecraft:underwater_movement.
|
|
5604
|
+
*/
|
|
5101
5605
|
readonly typeId: string;
|
|
5102
5606
|
/**
|
|
5103
5607
|
* Value for movement speed underwater as defined through
|
|
@@ -5105,6 +5609,10 @@ export class EntityUnderwaterMovementComponent extends IEntityComponent {
|
|
|
5105
5609
|
* @throws This property can throw when used.
|
|
5106
5610
|
*/
|
|
5107
5611
|
readonly value: number;
|
|
5612
|
+
/**
|
|
5613
|
+
* Identifier of this component. Should always be
|
|
5614
|
+
* minecraft:underwater_movement.
|
|
5615
|
+
*/
|
|
5108
5616
|
static readonly componentId = 'minecraft:underwater_movement';
|
|
5109
5617
|
/**
|
|
5110
5618
|
* @remarks
|
|
@@ -5144,6 +5652,10 @@ export class EntityUnderwaterMovementComponent extends IEntityComponent {
|
|
|
5144
5652
|
* entity from others. (e.g. ocelot, villager).
|
|
5145
5653
|
*/
|
|
5146
5654
|
export class EntityVariantComponent extends IEntityComponent {
|
|
5655
|
+
/**
|
|
5656
|
+
* Identifier of this component. Should always be
|
|
5657
|
+
* minecraft:variant.
|
|
5658
|
+
*/
|
|
5147
5659
|
readonly typeId: string;
|
|
5148
5660
|
/**
|
|
5149
5661
|
* The identifier of the variant. By convention, 0 is the
|
|
@@ -5151,6 +5663,10 @@ export class EntityVariantComponent extends IEntityComponent {
|
|
|
5151
5663
|
* @throws This property can throw when used.
|
|
5152
5664
|
*/
|
|
5153
5665
|
readonly value: number;
|
|
5666
|
+
/**
|
|
5667
|
+
* Identifier of this component. Should always be
|
|
5668
|
+
* minecraft:variant.
|
|
5669
|
+
*/
|
|
5154
5670
|
static readonly componentId = 'minecraft:variant';
|
|
5155
5671
|
protected constructor();
|
|
5156
5672
|
}
|
|
@@ -5159,7 +5675,15 @@ export class EntityVariantComponent extends IEntityComponent {
|
|
|
5159
5675
|
* to become a jockey.
|
|
5160
5676
|
*/
|
|
5161
5677
|
export class EntityWantsJockeyComponent extends IEntityComponent {
|
|
5678
|
+
/**
|
|
5679
|
+
* Identifier of this component. Should always be
|
|
5680
|
+
* minecraft:wants_jockey.
|
|
5681
|
+
*/
|
|
5162
5682
|
readonly typeId: string;
|
|
5683
|
+
/**
|
|
5684
|
+
* Identifier of this component. Should always be
|
|
5685
|
+
* minecraft:wants_jockey.
|
|
5686
|
+
*/
|
|
5163
5687
|
static readonly componentId = 'minecraft:wants_jockey';
|
|
5164
5688
|
protected constructor();
|
|
5165
5689
|
}
|
|
@@ -6123,7 +6647,7 @@ export class ItemType {
|
|
|
6123
6647
|
protected constructor();
|
|
6124
6648
|
}
|
|
6125
6649
|
export class ItemTypeIterator implements Iterable<ItemType> {
|
|
6126
|
-
|
|
6650
|
+
[Symbol.iterator](): Iterator<ItemType>;
|
|
6127
6651
|
next(): IteratorResult<ItemType>;
|
|
6128
6652
|
protected constructor();
|
|
6129
6653
|
}
|
|
@@ -6325,7 +6849,6 @@ export class Location {
|
|
|
6325
6849
|
export class MessageReceiveEvent {
|
|
6326
6850
|
readonly id: string;
|
|
6327
6851
|
readonly message: string;
|
|
6328
|
-
readonly player: Player;
|
|
6329
6852
|
readonly sourceType: MessageSourceType;
|
|
6330
6853
|
protected constructor();
|
|
6331
6854
|
}
|
|
@@ -12401,7 +12924,10 @@ export class Player extends Entity {
|
|
|
12401
12924
|
*/
|
|
12402
12925
|
readonly headLocation: Location;
|
|
12403
12926
|
/**
|
|
12404
|
-
*
|
|
12927
|
+
* Unique identifier of the player. This identifier is intended
|
|
12928
|
+
* to be consistent across loads of a world instance. No
|
|
12929
|
+
* meaning should be inferred from the value and structure of
|
|
12930
|
+
* this unique identifier - do not parse or interpret it.
|
|
12405
12931
|
* @throws This property can throw when used.
|
|
12406
12932
|
*/
|
|
12407
12933
|
readonly id: string;
|
|
@@ -12413,7 +12939,7 @@ export class Player extends Entity {
|
|
|
12413
12939
|
* Current location of the player.
|
|
12414
12940
|
* @throws This property can throw when used.
|
|
12415
12941
|
*/
|
|
12416
|
-
readonly location:
|
|
12942
|
+
readonly location: Location;
|
|
12417
12943
|
/**
|
|
12418
12944
|
* Name of the player.
|
|
12419
12945
|
* @throws This property can throw when used.
|
|
@@ -12450,6 +12976,11 @@ export class Player extends Entity {
|
|
|
12450
12976
|
* @throws This property can throw when used.
|
|
12451
12977
|
*/
|
|
12452
12978
|
readonly target: Entity;
|
|
12979
|
+
/**
|
|
12980
|
+
* Unique identifier of the type of the entity - for example,
|
|
12981
|
+
* 'minecraft:player'.
|
|
12982
|
+
* @throws This property can throw when used.
|
|
12983
|
+
*/
|
|
12453
12984
|
readonly typeId: string;
|
|
12454
12985
|
/**
|
|
12455
12986
|
* Current speed of the player across X, Y, and Z dimensions.
|
|
@@ -12805,7 +13336,7 @@ export class PlayerInventoryComponentContainer extends InventoryComponentContain
|
|
|
12805
13336
|
* statements, Array.from(iterator), and more.
|
|
12806
13337
|
*/
|
|
12807
13338
|
export class PlayerIterator implements Iterable<Player> {
|
|
12808
|
-
|
|
13339
|
+
[Symbol.iterator](): Iterator<Player>;
|
|
12809
13340
|
/**
|
|
12810
13341
|
* @remarks
|
|
12811
13342
|
* Retrieves the next item in this iteration. The resulting
|
|
@@ -13344,7 +13875,7 @@ export class Vector {
|
|
|
13344
13875
|
* @param a
|
|
13345
13876
|
* @param b
|
|
13346
13877
|
*/
|
|
13347
|
-
static add(a:
|
|
13878
|
+
static add(a: Vector, b: Vector): Vector;
|
|
13348
13879
|
/**
|
|
13349
13880
|
* @remarks
|
|
13350
13881
|
* Creates a new instance of an abstract vector.
|
|
@@ -13362,21 +13893,21 @@ export class Vector {
|
|
|
13362
13893
|
* @param a
|
|
13363
13894
|
* @param b
|
|
13364
13895
|
*/
|
|
13365
|
-
static cross(a:
|
|
13896
|
+
static cross(a: Vector, b: Vector): Vector;
|
|
13366
13897
|
/**
|
|
13367
13898
|
* @remarks
|
|
13368
13899
|
* Returns the distance between two vectors.
|
|
13369
13900
|
* @param a
|
|
13370
13901
|
* @param b
|
|
13371
13902
|
*/
|
|
13372
|
-
static distance(a:
|
|
13903
|
+
static distance(a: Vector, b: Vector): number;
|
|
13373
13904
|
/**
|
|
13374
13905
|
* @remarks
|
|
13375
13906
|
* Returns the component-wise division of these vectors.
|
|
13376
13907
|
* @param a
|
|
13377
13908
|
* @param b
|
|
13378
13909
|
*/
|
|
13379
|
-
static divide(a:
|
|
13910
|
+
static divide(a: Vector, b: number | Vector): Vector;
|
|
13380
13911
|
/**
|
|
13381
13912
|
* @remarks
|
|
13382
13913
|
* Compares this vector and another vector to one another.
|
|
@@ -13404,7 +13935,7 @@ export class Vector {
|
|
|
13404
13935
|
* @param b
|
|
13405
13936
|
* @param t
|
|
13406
13937
|
*/
|
|
13407
|
-
static lerp(a:
|
|
13938
|
+
static lerp(a: Vector, b: Vector, t: number): Vector;
|
|
13408
13939
|
/**
|
|
13409
13940
|
* @remarks
|
|
13410
13941
|
* Returns a vector that is made from the largest components of
|
|
@@ -13412,7 +13943,7 @@ export class Vector {
|
|
|
13412
13943
|
* @param a
|
|
13413
13944
|
* @param b
|
|
13414
13945
|
*/
|
|
13415
|
-
static max(a:
|
|
13946
|
+
static max(a: Vector, b: Vector): Vector;
|
|
13416
13947
|
/**
|
|
13417
13948
|
* @remarks
|
|
13418
13949
|
* Returns a vector that is made from the smallest components
|
|
@@ -13420,14 +13951,14 @@ export class Vector {
|
|
|
13420
13951
|
* @param a
|
|
13421
13952
|
* @param b
|
|
13422
13953
|
*/
|
|
13423
|
-
static min(a:
|
|
13954
|
+
static min(a: Vector, b: Vector): Vector;
|
|
13424
13955
|
/**
|
|
13425
13956
|
* @remarks
|
|
13426
13957
|
* Returns the component-wise product of these vectors.
|
|
13427
13958
|
* @param a
|
|
13428
13959
|
* @param b
|
|
13429
13960
|
*/
|
|
13430
|
-
static multiply(a:
|
|
13961
|
+
static multiply(a: Vector, b: number | Vector): Vector;
|
|
13431
13962
|
/**
|
|
13432
13963
|
* @remarks
|
|
13433
13964
|
* Returns this vector as a normalized vector.
|
|
@@ -13441,14 +13972,14 @@ export class Vector {
|
|
|
13441
13972
|
* @param b
|
|
13442
13973
|
* @param s
|
|
13443
13974
|
*/
|
|
13444
|
-
static slerp(a:
|
|
13975
|
+
static slerp(a: Vector, b: Vector, s: number): Vector;
|
|
13445
13976
|
/**
|
|
13446
13977
|
* @remarks
|
|
13447
13978
|
* Returns the subtraction of these vectors.
|
|
13448
13979
|
* @param a
|
|
13449
13980
|
* @param b
|
|
13450
13981
|
*/
|
|
13451
|
-
static subtract(a:
|
|
13982
|
+
static subtract(a: Vector, b: Vector): Vector;
|
|
13452
13983
|
}
|
|
13453
13984
|
/**
|
|
13454
13985
|
* Contains information related to changes in weather in the
|