@minecraft/server 2.6.0-rc.1.26.20-preview.20 → 2.6.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/README.md +0 -2
- package/index.d.ts +0 -709
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
|
|
4
4
|
|
|
5
|
-
## **NOTE: This version of this module is still in pre-release. It may change or it may be removed in future releases.**
|
|
6
|
-
|
|
7
5
|
See full documentation for this module here:
|
|
8
6
|
|
|
9
7
|
https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
|
package/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
8
8
|
***************************************************************************** */
|
|
9
9
|
/**
|
|
10
|
-
* @preview
|
|
11
10
|
* @packageDocumentation
|
|
12
11
|
* Contains many types related to manipulating a Minecraft
|
|
13
12
|
* world, including entities, blocks, dimensions, and more.
|
|
@@ -24,25 +23,6 @@
|
|
|
24
23
|
import * as minecraftcommon from '@minecraft/common';
|
|
25
24
|
// @ts-ignore Optional types-only package, will decay to any if @minecraft/vanilla-data isn't installed
|
|
26
25
|
import type * as minecraftvanilladata from '@minecraft/vanilla-data';
|
|
27
|
-
/**
|
|
28
|
-
* @rc
|
|
29
|
-
* Specifies different targeting modes for use in aim-assist.
|
|
30
|
-
*/
|
|
31
|
-
export enum AimAssistTargetMode {
|
|
32
|
-
/**
|
|
33
|
-
* @remarks
|
|
34
|
-
* Angle based targeting.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
Angle = 'Angle',
|
|
38
|
-
/**
|
|
39
|
-
* @remarks
|
|
40
|
-
* Distance based targeting.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
Distance = 'Distance',
|
|
44
|
-
}
|
|
45
|
-
|
|
46
26
|
/**
|
|
47
27
|
* The types of block components that are accessible via
|
|
48
28
|
* function Block.getComponent.
|
|
@@ -700,7 +680,6 @@ export enum EnchantmentSlot {
|
|
|
700
680
|
}
|
|
701
681
|
|
|
702
682
|
/**
|
|
703
|
-
* @rc
|
|
704
683
|
* The entity's attach location point. Contains points such as
|
|
705
684
|
* head, body, leg, etc to attach the camera to.
|
|
706
685
|
*/
|
|
@@ -1412,7 +1391,6 @@ export enum EntityDamageCause {
|
|
|
1412
1391
|
}
|
|
1413
1392
|
|
|
1414
1393
|
/**
|
|
1415
|
-
* @rc
|
|
1416
1394
|
* Describes the source of healing of an Entity.
|
|
1417
1395
|
*/
|
|
1418
1396
|
export enum EntityHealCause {
|
|
@@ -2766,7 +2744,6 @@ export enum StructureSaveMode {
|
|
|
2766
2744
|
}
|
|
2767
2745
|
|
|
2768
2746
|
/**
|
|
2769
|
-
* @rc
|
|
2770
2747
|
* The reason that the {@link
|
|
2771
2748
|
* @minecraft/server.TickingAreaError} was thrown.
|
|
2772
2749
|
*/
|
|
@@ -3127,542 +3104,6 @@ export type ItemComponentTypeMap = {
|
|
|
3127
3104
|
potion: ItemPotionComponent;
|
|
3128
3105
|
};
|
|
3129
3106
|
|
|
3130
|
-
/**
|
|
3131
|
-
* @rc
|
|
3132
|
-
* Handle to an aim-assist category that exists in the
|
|
3133
|
-
* world.aimAssist registry.
|
|
3134
|
-
*/
|
|
3135
|
-
export class AimAssistCategory {
|
|
3136
|
-
private constructor();
|
|
3137
|
-
/**
|
|
3138
|
-
* @remarks
|
|
3139
|
-
* Default targeting priority used for block types not found in
|
|
3140
|
-
* getBlockPriorities.
|
|
3141
|
-
*
|
|
3142
|
-
* @throws This property can throw when used.
|
|
3143
|
-
*/
|
|
3144
|
-
readonly defaultBlockPriority: number;
|
|
3145
|
-
/**
|
|
3146
|
-
* @remarks
|
|
3147
|
-
* Default targeting priority used for entity types not found
|
|
3148
|
-
* in getEntityPriorities.
|
|
3149
|
-
*
|
|
3150
|
-
* @throws This property can throw when used.
|
|
3151
|
-
*/
|
|
3152
|
-
readonly defaultEntityPriority: number;
|
|
3153
|
-
/**
|
|
3154
|
-
* @remarks
|
|
3155
|
-
* The unique Id associated with the category.
|
|
3156
|
-
*
|
|
3157
|
-
*/
|
|
3158
|
-
readonly identifier: string;
|
|
3159
|
-
/**
|
|
3160
|
-
* @remarks
|
|
3161
|
-
* Gets the priority settings used for block targeting.
|
|
3162
|
-
*
|
|
3163
|
-
* @returns
|
|
3164
|
-
* The record mapping block Ids to their priority settings.
|
|
3165
|
-
* Larger numbers have greater priority.
|
|
3166
|
-
* @throws This function can throw errors.
|
|
3167
|
-
*/
|
|
3168
|
-
getBlockPriorities(): Record<string, number>;
|
|
3169
|
-
/**
|
|
3170
|
-
* @remarks
|
|
3171
|
-
* Gets the priority settings used for block targeting.
|
|
3172
|
-
*
|
|
3173
|
-
* @returns
|
|
3174
|
-
* The record mapping block tags to their priority settings.
|
|
3175
|
-
* Larger numbers have greater priority.
|
|
3176
|
-
* @throws This function can throw errors.
|
|
3177
|
-
*
|
|
3178
|
-
* {@link minecraftcommon.EngineError}
|
|
3179
|
-
*/
|
|
3180
|
-
getBlockTagPriorities(): Record<string, number>;
|
|
3181
|
-
/**
|
|
3182
|
-
* @remarks
|
|
3183
|
-
* Gets the priority settings used for entity targeting.
|
|
3184
|
-
*
|
|
3185
|
-
* @returns
|
|
3186
|
-
* The record mapping entity Ids to their priority settings.
|
|
3187
|
-
* Larger numbers have greater priority.
|
|
3188
|
-
* @throws This function can throw errors.
|
|
3189
|
-
*/
|
|
3190
|
-
getEntityPriorities(): Record<string, number>;
|
|
3191
|
-
/**
|
|
3192
|
-
* @remarks
|
|
3193
|
-
* Gets the priority settings used for entity targeting.
|
|
3194
|
-
*
|
|
3195
|
-
* @returns
|
|
3196
|
-
* Map entity type families to their priority settings in a
|
|
3197
|
-
* Record. Larger numbers have greater priority.
|
|
3198
|
-
* @throws This function can throw errors.
|
|
3199
|
-
*
|
|
3200
|
-
* {@link minecraftcommon.EngineError}
|
|
3201
|
-
*/
|
|
3202
|
-
getEntityTypeFamilyPriorities(): Record<string, number>;
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
/**
|
|
3206
|
-
* @rc
|
|
3207
|
-
* Settings used with AimAssistRegistry.addCategory for
|
|
3208
|
-
* creation of the AimAssistCategory.
|
|
3209
|
-
*/
|
|
3210
|
-
export class AimAssistCategorySettings {
|
|
3211
|
-
/**
|
|
3212
|
-
* @remarks
|
|
3213
|
-
* Optional. Default targeting priority used for block types
|
|
3214
|
-
* not provided to setBlockPriorities.
|
|
3215
|
-
*
|
|
3216
|
-
* This property can't be edited in restricted-execution mode.
|
|
3217
|
-
*
|
|
3218
|
-
*/
|
|
3219
|
-
defaultBlockPriority: number;
|
|
3220
|
-
/**
|
|
3221
|
-
* @remarks
|
|
3222
|
-
* Optional. Default targeting priority used for entity types
|
|
3223
|
-
* not provided to setEntityPriorities.
|
|
3224
|
-
*
|
|
3225
|
-
* This property can't be edited in restricted-execution mode.
|
|
3226
|
-
*
|
|
3227
|
-
*/
|
|
3228
|
-
defaultEntityPriority: number;
|
|
3229
|
-
/**
|
|
3230
|
-
* @remarks
|
|
3231
|
-
* The unique Id used to register the category with. Must have
|
|
3232
|
-
* a namespace.
|
|
3233
|
-
*
|
|
3234
|
-
*/
|
|
3235
|
-
readonly identifier: string;
|
|
3236
|
-
/**
|
|
3237
|
-
* @remarks
|
|
3238
|
-
* Constructor that takes a unique Id to associate with the
|
|
3239
|
-
* created AimAssistCategory. Must have a namespace.
|
|
3240
|
-
*
|
|
3241
|
-
*/
|
|
3242
|
-
constructor(identifier: string);
|
|
3243
|
-
/**
|
|
3244
|
-
* @remarks
|
|
3245
|
-
* Gets the priority settings used for block targeting.
|
|
3246
|
-
*
|
|
3247
|
-
* @returns
|
|
3248
|
-
* The record mapping block Ids to their priority settings.
|
|
3249
|
-
* Larger numbers have greater priority.
|
|
3250
|
-
*/
|
|
3251
|
-
getBlockPriorities(): Record<string, number>;
|
|
3252
|
-
/**
|
|
3253
|
-
* @remarks
|
|
3254
|
-
* Gets the priority settings used for block targeting.
|
|
3255
|
-
*
|
|
3256
|
-
* @returns
|
|
3257
|
-
* The record mapping block tags to their priority settings.
|
|
3258
|
-
* Larger numbers have greater priority.
|
|
3259
|
-
*/
|
|
3260
|
-
getBlockTagPriorities(): Record<string, number>;
|
|
3261
|
-
/**
|
|
3262
|
-
* @remarks
|
|
3263
|
-
* Gets the priority settings used for entity targeting.
|
|
3264
|
-
*
|
|
3265
|
-
* @returns
|
|
3266
|
-
* The record mapping entity Ids to their priority settings.
|
|
3267
|
-
* Larger numbers have greater priority.
|
|
3268
|
-
*/
|
|
3269
|
-
getEntityPriorities(): Record<string, number>;
|
|
3270
|
-
/**
|
|
3271
|
-
* @remarks
|
|
3272
|
-
* Gets the priority settings used for entity targeting.
|
|
3273
|
-
*
|
|
3274
|
-
* @returns
|
|
3275
|
-
* Map entity type families to their priority settings in a
|
|
3276
|
-
* Record. Larger numbers have greater priority.
|
|
3277
|
-
*/
|
|
3278
|
-
getEntityTypeFamilyPriorities(): Record<string, number>;
|
|
3279
|
-
/**
|
|
3280
|
-
* @remarks
|
|
3281
|
-
* Sets the priority settings used for block targeting.
|
|
3282
|
-
*
|
|
3283
|
-
* This function can't be called in restricted-execution mode.
|
|
3284
|
-
*
|
|
3285
|
-
* @param blockPriorities
|
|
3286
|
-
* A record mapping block Ids to their priority settings.
|
|
3287
|
-
* Larger numbers have greater priority.
|
|
3288
|
-
*/
|
|
3289
|
-
setBlockPriorities(blockPriorities: Record<string, number>): void;
|
|
3290
|
-
/**
|
|
3291
|
-
* @remarks
|
|
3292
|
-
* Sets the priority settings used for block targeting.
|
|
3293
|
-
*
|
|
3294
|
-
* This function can't be called in restricted-execution mode.
|
|
3295
|
-
*
|
|
3296
|
-
*/
|
|
3297
|
-
setBlockTagPriorities(blockTagPriorities: Record<string, number>): void;
|
|
3298
|
-
/**
|
|
3299
|
-
* @remarks
|
|
3300
|
-
* Sets the priority settings used for entity targeting.
|
|
3301
|
-
*
|
|
3302
|
-
* This function can't be called in restricted-execution mode.
|
|
3303
|
-
*
|
|
3304
|
-
* @param entityPriorities
|
|
3305
|
-
* A record mapping entity Ids to their priority settings.
|
|
3306
|
-
* Larger numbers have greater priority.
|
|
3307
|
-
*/
|
|
3308
|
-
setEntityPriorities(entityPriorities: Record<string, number>): void;
|
|
3309
|
-
/**
|
|
3310
|
-
* @remarks
|
|
3311
|
-
* Sets the priority settings used for entity targeting.
|
|
3312
|
-
*
|
|
3313
|
-
* This function can't be called in restricted-execution mode.
|
|
3314
|
-
*
|
|
3315
|
-
*/
|
|
3316
|
-
setEntityTypeFamilyPriorities(entityTypeFamilyPriorities: Record<string, number>): void;
|
|
3317
|
-
}
|
|
3318
|
-
|
|
3319
|
-
/**
|
|
3320
|
-
* @rc
|
|
3321
|
-
* Handle to an aim-assist preset that exists in the
|
|
3322
|
-
* world.aimAssist registry.
|
|
3323
|
-
*/
|
|
3324
|
-
export class AimAssistPreset {
|
|
3325
|
-
private constructor();
|
|
3326
|
-
/**
|
|
3327
|
-
* @remarks
|
|
3328
|
-
* Optional. Default aim-assist category Id used for items not
|
|
3329
|
-
* provided to setItemSettings.
|
|
3330
|
-
*
|
|
3331
|
-
* @throws This property can throw when used.
|
|
3332
|
-
*/
|
|
3333
|
-
readonly defaultItemSettings?: string;
|
|
3334
|
-
/**
|
|
3335
|
-
* @remarks
|
|
3336
|
-
* Optional. Aim-assist category Id used for an empty hand.
|
|
3337
|
-
*
|
|
3338
|
-
* @throws This property can throw when used.
|
|
3339
|
-
*/
|
|
3340
|
-
readonly handSettings?: string;
|
|
3341
|
-
/**
|
|
3342
|
-
* @remarks
|
|
3343
|
-
* The unique Id associated with the preset.
|
|
3344
|
-
*
|
|
3345
|
-
*/
|
|
3346
|
-
readonly identifier: string;
|
|
3347
|
-
/**
|
|
3348
|
-
* @remarks
|
|
3349
|
-
* Gets the list of block tags to exclude from aim assist
|
|
3350
|
-
* targeting.
|
|
3351
|
-
*
|
|
3352
|
-
* @returns
|
|
3353
|
-
* The array of block tags.
|
|
3354
|
-
* @throws This function can throw errors.
|
|
3355
|
-
*
|
|
3356
|
-
* {@link minecraftcommon.EngineError}
|
|
3357
|
-
*/
|
|
3358
|
-
getExcludedBlockTagTargets(): string[];
|
|
3359
|
-
/**
|
|
3360
|
-
* @remarks
|
|
3361
|
-
* Gets the list of block Ids to exclude from aim assist
|
|
3362
|
-
* targeting.
|
|
3363
|
-
*
|
|
3364
|
-
* @returns
|
|
3365
|
-
* The array of block Ids.
|
|
3366
|
-
* @throws This function can throw errors.
|
|
3367
|
-
*/
|
|
3368
|
-
getExcludedBlockTargets(): string[];
|
|
3369
|
-
/**
|
|
3370
|
-
* @remarks
|
|
3371
|
-
* Gets the list of entity Ids to exclude from aim assist
|
|
3372
|
-
* targeting.
|
|
3373
|
-
*
|
|
3374
|
-
* @returns
|
|
3375
|
-
* The array of entity Ids.
|
|
3376
|
-
* @throws This function can throw errors.
|
|
3377
|
-
*/
|
|
3378
|
-
getExcludedEntityTargets(): string[];
|
|
3379
|
-
/**
|
|
3380
|
-
* @remarks
|
|
3381
|
-
* Gets the list of entity type families to exclude from aim
|
|
3382
|
-
* assist targeting.
|
|
3383
|
-
*
|
|
3384
|
-
* @returns
|
|
3385
|
-
* The array of entity type families.
|
|
3386
|
-
* @throws This function can throw errors.
|
|
3387
|
-
*
|
|
3388
|
-
* {@link minecraftcommon.EngineError}
|
|
3389
|
-
*/
|
|
3390
|
-
getExcludedEntityTypeFamilyTargets(): string[];
|
|
3391
|
-
/**
|
|
3392
|
-
* @remarks
|
|
3393
|
-
* Gets the per-item aim-assist category Ids.
|
|
3394
|
-
*
|
|
3395
|
-
* @returns
|
|
3396
|
-
* The record mapping item Ids to aim-assist category Ids.
|
|
3397
|
-
* @throws This function can throw errors.
|
|
3398
|
-
*/
|
|
3399
|
-
getItemSettings(): Record<string, string>;
|
|
3400
|
-
/**
|
|
3401
|
-
* @remarks
|
|
3402
|
-
* Gets the list of item Ids that will target liquid blocks
|
|
3403
|
-
* with aim-assist when being held.
|
|
3404
|
-
*
|
|
3405
|
-
* @returns
|
|
3406
|
-
* The array of item Ids.
|
|
3407
|
-
* @throws This function can throw errors.
|
|
3408
|
-
*/
|
|
3409
|
-
getLiquidTargetingItems(): string[];
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
/**
|
|
3413
|
-
* @rc
|
|
3414
|
-
* Settings used with AimAssistRegistry.addPreset for creation
|
|
3415
|
-
* of the AimAssistPreset.
|
|
3416
|
-
*/
|
|
3417
|
-
export class AimAssistPresetSettings {
|
|
3418
|
-
/**
|
|
3419
|
-
* @remarks
|
|
3420
|
-
* Optional. Default aim-assist category Id used for items not
|
|
3421
|
-
* provided to setItemSettings.
|
|
3422
|
-
*
|
|
3423
|
-
* This property can't be edited in restricted-execution mode.
|
|
3424
|
-
*
|
|
3425
|
-
*/
|
|
3426
|
-
defaultItemSettings?: string;
|
|
3427
|
-
/**
|
|
3428
|
-
* @remarks
|
|
3429
|
-
* Optional. Aim-assist category Id used for an empty hand.
|
|
3430
|
-
*
|
|
3431
|
-
* This property can't be edited in restricted-execution mode.
|
|
3432
|
-
*
|
|
3433
|
-
*/
|
|
3434
|
-
handSettings?: string;
|
|
3435
|
-
/**
|
|
3436
|
-
* @remarks
|
|
3437
|
-
* The unique Id used to register the preset with. Must have a
|
|
3438
|
-
* namespace.
|
|
3439
|
-
*
|
|
3440
|
-
*/
|
|
3441
|
-
readonly identifier: string;
|
|
3442
|
-
/**
|
|
3443
|
-
* @remarks
|
|
3444
|
-
* Constructor that takes a unique Id to associate with the
|
|
3445
|
-
* created AimAssistPreset. Must have a namespace.
|
|
3446
|
-
*
|
|
3447
|
-
*/
|
|
3448
|
-
constructor(identifier: string);
|
|
3449
|
-
/**
|
|
3450
|
-
* @remarks
|
|
3451
|
-
* Gets the list of block tags to exclude from aim assist
|
|
3452
|
-
* targeting.
|
|
3453
|
-
*
|
|
3454
|
-
* @returns
|
|
3455
|
-
* The array of block tags.
|
|
3456
|
-
*/
|
|
3457
|
-
getExcludedBlockTagTargets(): string[] | undefined;
|
|
3458
|
-
/**
|
|
3459
|
-
* @remarks
|
|
3460
|
-
* Gets the list of block Ids to exclude from aim assist
|
|
3461
|
-
* targeting.
|
|
3462
|
-
*
|
|
3463
|
-
* @returns
|
|
3464
|
-
* The array of block Ids.
|
|
3465
|
-
*/
|
|
3466
|
-
getExcludedBlockTargets(): string[] | undefined;
|
|
3467
|
-
/**
|
|
3468
|
-
* @remarks
|
|
3469
|
-
* Gets the list of entity Ids to exclude from aim assist
|
|
3470
|
-
* targeting.
|
|
3471
|
-
*
|
|
3472
|
-
* @returns
|
|
3473
|
-
* The array of entity Ids.
|
|
3474
|
-
*/
|
|
3475
|
-
getExcludedEntityTargets(): string[] | undefined;
|
|
3476
|
-
/**
|
|
3477
|
-
* @remarks
|
|
3478
|
-
* Gets the list of entity type families to exclude from aim
|
|
3479
|
-
* assist targeting.
|
|
3480
|
-
*
|
|
3481
|
-
* @returns
|
|
3482
|
-
* The array of entity type families.
|
|
3483
|
-
*/
|
|
3484
|
-
getExcludedEntityTypeFamilyTargets(): string[] | undefined;
|
|
3485
|
-
/**
|
|
3486
|
-
* @remarks
|
|
3487
|
-
* Gets the per-item aim-assist category Ids.
|
|
3488
|
-
*
|
|
3489
|
-
* @returns
|
|
3490
|
-
* The record mapping item Ids to aim-assist category Ids.
|
|
3491
|
-
*/
|
|
3492
|
-
getItemSettings(): Record<string, string>;
|
|
3493
|
-
/**
|
|
3494
|
-
* @remarks
|
|
3495
|
-
* Gets the list of item Ids that will target liquid blocks
|
|
3496
|
-
* with aim-assist when being held.
|
|
3497
|
-
*
|
|
3498
|
-
* @returns
|
|
3499
|
-
* The array of item Ids.
|
|
3500
|
-
*/
|
|
3501
|
-
getLiquidTargetingItems(): string[] | undefined;
|
|
3502
|
-
/**
|
|
3503
|
-
* @remarks
|
|
3504
|
-
* Sets the list of block tags to exclude from aim assist
|
|
3505
|
-
* targeting.
|
|
3506
|
-
*
|
|
3507
|
-
* This function can't be called in restricted-execution mode.
|
|
3508
|
-
*
|
|
3509
|
-
*/
|
|
3510
|
-
setExcludedBlockTagTargets(blockTagTargets?: string[]): void;
|
|
3511
|
-
/**
|
|
3512
|
-
* @remarks
|
|
3513
|
-
* Sets the list of block Ids to exclude from aim assist
|
|
3514
|
-
* targeting.
|
|
3515
|
-
*
|
|
3516
|
-
* This function can't be called in restricted-execution mode.
|
|
3517
|
-
*
|
|
3518
|
-
*/
|
|
3519
|
-
setExcludedBlockTargets(blockTargets?: string[]): void;
|
|
3520
|
-
/**
|
|
3521
|
-
* @remarks
|
|
3522
|
-
* Sets the list of entity Ids to exclude from aim assist
|
|
3523
|
-
* targeting.
|
|
3524
|
-
*
|
|
3525
|
-
* This function can't be called in restricted-execution mode.
|
|
3526
|
-
*
|
|
3527
|
-
*/
|
|
3528
|
-
setExcludedEntityTargets(entityTargets?: string[]): void;
|
|
3529
|
-
/**
|
|
3530
|
-
* @remarks
|
|
3531
|
-
* Sets the list of entity type families to exclude from aim
|
|
3532
|
-
* assist targeting.
|
|
3533
|
-
*
|
|
3534
|
-
* This function can't be called in restricted-execution mode.
|
|
3535
|
-
*
|
|
3536
|
-
*/
|
|
3537
|
-
setExcludedEntityTypeFamilyTargets(entityTypeFamilyTargets?: string[]): void;
|
|
3538
|
-
/**
|
|
3539
|
-
* @remarks
|
|
3540
|
-
* Sets the per-item aim-assist category Ids.
|
|
3541
|
-
*
|
|
3542
|
-
* This function can't be called in restricted-execution mode.
|
|
3543
|
-
*
|
|
3544
|
-
* @param itemSettings
|
|
3545
|
-
* A record mapping item Ids to aim-assist category Ids.
|
|
3546
|
-
* Category Ids must have a namespace.
|
|
3547
|
-
*/
|
|
3548
|
-
setItemSettings(itemSettings: Record<string, string>): void;
|
|
3549
|
-
/**
|
|
3550
|
-
* @remarks
|
|
3551
|
-
* Sets the list of item Ids that will target liquid blocks
|
|
3552
|
-
* with aim-assist when being held.
|
|
3553
|
-
*
|
|
3554
|
-
* This function can't be called in restricted-execution mode.
|
|
3555
|
-
*
|
|
3556
|
-
* @param items
|
|
3557
|
-
* An array of item Ids.
|
|
3558
|
-
*/
|
|
3559
|
-
setLiquidTargetingItems(items?: string[]): void;
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
|
-
/**
|
|
3563
|
-
* @rc
|
|
3564
|
-
* A container for APIs related to the world's aim-assist
|
|
3565
|
-
* settings.
|
|
3566
|
-
*/
|
|
3567
|
-
export class AimAssistRegistry {
|
|
3568
|
-
private constructor();
|
|
3569
|
-
/**
|
|
3570
|
-
* @remarks
|
|
3571
|
-
* The default aim-assist category Id that is used when not
|
|
3572
|
-
* otherwise specified.
|
|
3573
|
-
*
|
|
3574
|
-
*/
|
|
3575
|
-
static readonly DefaultCategoryId = 'minecraft:default';
|
|
3576
|
-
/**
|
|
3577
|
-
* @remarks
|
|
3578
|
-
* The default aim-assist preset Id that is used when not
|
|
3579
|
-
* otherwise specified.
|
|
3580
|
-
*
|
|
3581
|
-
*/
|
|
3582
|
-
static readonly DefaultPresetId = 'minecraft:aim_assist_default';
|
|
3583
|
-
/**
|
|
3584
|
-
* @remarks
|
|
3585
|
-
* Adds an aim-assist category to the registry.
|
|
3586
|
-
*
|
|
3587
|
-
* This function can't be called in restricted-execution mode.
|
|
3588
|
-
*
|
|
3589
|
-
* @param category
|
|
3590
|
-
* The category settings used to create the new category.
|
|
3591
|
-
* @returns
|
|
3592
|
-
* The created category handle.
|
|
3593
|
-
* @throws This function can throw errors.
|
|
3594
|
-
*
|
|
3595
|
-
* {@link minecraftcommon.EngineError}
|
|
3596
|
-
*
|
|
3597
|
-
* {@link Error}
|
|
3598
|
-
*
|
|
3599
|
-
* {@link minecraftcommon.InvalidArgumentError}
|
|
3600
|
-
*
|
|
3601
|
-
* {@link NamespaceNameError}
|
|
3602
|
-
*/
|
|
3603
|
-
addCategory(category: AimAssistCategorySettings): AimAssistCategory;
|
|
3604
|
-
/**
|
|
3605
|
-
* @remarks
|
|
3606
|
-
* Adds an aim-assist preset to the registry.
|
|
3607
|
-
*
|
|
3608
|
-
* This function can't be called in restricted-execution mode.
|
|
3609
|
-
*
|
|
3610
|
-
* @param preset
|
|
3611
|
-
* The preset settings used to create the new preset.
|
|
3612
|
-
* @returns
|
|
3613
|
-
* The created preset handle.
|
|
3614
|
-
* @throws This function can throw errors.
|
|
3615
|
-
*
|
|
3616
|
-
* {@link minecraftcommon.EngineError}
|
|
3617
|
-
*
|
|
3618
|
-
* {@link Error}
|
|
3619
|
-
*
|
|
3620
|
-
* {@link minecraftcommon.InvalidArgumentError}
|
|
3621
|
-
*
|
|
3622
|
-
* {@link NamespaceNameError}
|
|
3623
|
-
*/
|
|
3624
|
-
addPreset(preset: AimAssistPresetSettings): AimAssistPreset;
|
|
3625
|
-
/**
|
|
3626
|
-
* @remarks
|
|
3627
|
-
* Gets all available categories in the registry.
|
|
3628
|
-
*
|
|
3629
|
-
* @returns
|
|
3630
|
-
* An array of all available category objects.
|
|
3631
|
-
*/
|
|
3632
|
-
getCategories(): AimAssistCategory[];
|
|
3633
|
-
/**
|
|
3634
|
-
* @remarks
|
|
3635
|
-
* Gets the category associated with the provided Id.
|
|
3636
|
-
*
|
|
3637
|
-
* This function can't be called in restricted-execution mode.
|
|
3638
|
-
*
|
|
3639
|
-
* @returns
|
|
3640
|
-
* The category object if it exists, otherwise returns
|
|
3641
|
-
* undefined.
|
|
3642
|
-
*/
|
|
3643
|
-
getCategory(categoryId: string): AimAssistCategory | undefined;
|
|
3644
|
-
/**
|
|
3645
|
-
* @remarks
|
|
3646
|
-
* Gets the preset associated with the provided Id.
|
|
3647
|
-
*
|
|
3648
|
-
* This function can't be called in restricted-execution mode.
|
|
3649
|
-
*
|
|
3650
|
-
* @param presetId
|
|
3651
|
-
* The Id of the preset to retrieve. Must have a namespace.
|
|
3652
|
-
* @returns
|
|
3653
|
-
* The preset object if it exists, otherwise returns undefined.
|
|
3654
|
-
*/
|
|
3655
|
-
getPreset(presetId: string): AimAssistPreset | undefined;
|
|
3656
|
-
/**
|
|
3657
|
-
* @remarks
|
|
3658
|
-
* Gets all available presets in the registry.
|
|
3659
|
-
*
|
|
3660
|
-
* @returns
|
|
3661
|
-
* An array of all available preset objects.
|
|
3662
|
-
*/
|
|
3663
|
-
getPresets(): AimAssistPreset[];
|
|
3664
|
-
}
|
|
3665
|
-
|
|
3666
3107
|
/**
|
|
3667
3108
|
* Describes a type of biome.
|
|
3668
3109
|
*/
|
|
@@ -3926,7 +3367,6 @@ export class Block {
|
|
|
3926
3367
|
*/
|
|
3927
3368
|
getComponent<T extends string>(componentId: T): BlockComponentReturnType<T> | undefined;
|
|
3928
3369
|
/**
|
|
3929
|
-
* @rc
|
|
3930
3370
|
* @remarks
|
|
3931
3371
|
* Returns all scripting components that are present on this
|
|
3932
3372
|
* block.
|
|
@@ -4022,7 +3462,6 @@ export class Block {
|
|
|
4022
3462
|
*/
|
|
4023
3463
|
getTags(): string[];
|
|
4024
3464
|
/**
|
|
4025
|
-
* @rc
|
|
4026
3465
|
* @remarks
|
|
4027
3466
|
* Returns true if the specified component is present on this
|
|
4028
3467
|
* block.
|
|
@@ -4306,7 +3745,6 @@ export class BlockComponentBlockBreakEvent extends BlockEvent {
|
|
|
4306
3745
|
}
|
|
4307
3746
|
|
|
4308
3747
|
/**
|
|
4309
|
-
* @rc
|
|
4310
3748
|
* Contains information regarding an event sent by an entity to
|
|
4311
3749
|
* this block in the world.
|
|
4312
3750
|
*/
|
|
@@ -4480,7 +3918,6 @@ export class BlockComponentRedstoneUpdateEvent extends BlockEvent {
|
|
|
4480
3918
|
*/
|
|
4481
3919
|
readonly powerLevel: number;
|
|
4482
3920
|
/**
|
|
4483
|
-
* @rc
|
|
4484
3921
|
* @remarks
|
|
4485
3922
|
* The redstone signal strength from the last tick that was
|
|
4486
3923
|
* passing through this block. It is guaranteed to be >= the
|
|
@@ -4869,7 +4306,6 @@ export class BlockMovableComponent extends BlockComponent {
|
|
|
4869
4306
|
export class BlockPermutation {
|
|
4870
4307
|
private constructor();
|
|
4871
4308
|
/**
|
|
4872
|
-
* @rc
|
|
4873
4309
|
* @remarks
|
|
4874
4310
|
* Key for the localization of this BlockPermutation's name
|
|
4875
4311
|
* used in .lang files.
|
|
@@ -5539,7 +4975,6 @@ export class BlockType {
|
|
|
5539
4975
|
*/
|
|
5540
4976
|
readonly id: string;
|
|
5541
4977
|
/**
|
|
5542
|
-
* @rc
|
|
5543
4978
|
* @remarks
|
|
5544
4979
|
* Key for the localization of this BlockType's name used in
|
|
5545
4980
|
* .lang files.
|
|
@@ -5835,7 +5270,6 @@ export class Camera {
|
|
|
5835
5270
|
*/
|
|
5836
5271
|
readonly isValid: boolean;
|
|
5837
5272
|
/**
|
|
5838
|
-
* @rc
|
|
5839
5273
|
* @remarks
|
|
5840
5274
|
* Attaches the camera to a non-player entity.
|
|
5841
5275
|
*
|
|
@@ -5872,7 +5306,6 @@ export class Camera {
|
|
|
5872
5306
|
*/
|
|
5873
5307
|
fade(fadeCameraOptions?: CameraFadeOptions): void;
|
|
5874
5308
|
/**
|
|
5875
|
-
* @rc
|
|
5876
5309
|
* @remarks
|
|
5877
5310
|
* This function can't be called in restricted-execution mode.
|
|
5878
5311
|
*
|
|
@@ -5927,7 +5360,6 @@ export class Camera {
|
|
|
5927
5360
|
}
|
|
5928
5361
|
|
|
5929
5362
|
/**
|
|
5930
|
-
* @rc
|
|
5931
5363
|
* CatmullRom spline creation.
|
|
5932
5364
|
*/
|
|
5933
5365
|
export class CatmullRomSpline {
|
|
@@ -7004,7 +6436,6 @@ export class Dimension {
|
|
|
7004
6436
|
*/
|
|
7005
6437
|
readonly localizationKey: string;
|
|
7006
6438
|
/**
|
|
7007
|
-
* @rc
|
|
7008
6439
|
* @remarks
|
|
7009
6440
|
* Checks if an area contains the specified biomes. If the area
|
|
7010
6441
|
* is partially inside world boundaries, only the area that is
|
|
@@ -9717,7 +9148,6 @@ export class EntityDefinitionFeedItem {
|
|
|
9717
9148
|
*/
|
|
9718
9149
|
readonly item: string;
|
|
9719
9150
|
/**
|
|
9720
|
-
* @rc
|
|
9721
9151
|
* @remarks
|
|
9722
9152
|
* Type ID of the resulting item after feeding has occurred.
|
|
9723
9153
|
* This will usually be empty but is used for scenarios such as
|
|
@@ -9990,7 +9420,6 @@ export class EntityHealableComponent extends EntityComponent {
|
|
|
9990
9420
|
}
|
|
9991
9421
|
|
|
9992
9422
|
/**
|
|
9993
|
-
* @rc
|
|
9994
9423
|
* Contains information related to an entity having been
|
|
9995
9424
|
* healed.
|
|
9996
9425
|
*/
|
|
@@ -10017,7 +9446,6 @@ export class EntityHealAfterEvent {
|
|
|
10017
9446
|
}
|
|
10018
9447
|
|
|
10019
9448
|
/**
|
|
10020
|
-
* @rc
|
|
10021
9449
|
* Manages callbacks that are connected to when an entity is
|
|
10022
9450
|
* healed.
|
|
10023
9451
|
*/
|
|
@@ -10051,7 +9479,6 @@ export class EntityHealAfterEventSignal {
|
|
|
10051
9479
|
}
|
|
10052
9480
|
|
|
10053
9481
|
/**
|
|
10054
|
-
* @rc
|
|
10055
9482
|
* Contains information related to an entity that will be
|
|
10056
9483
|
* healed.
|
|
10057
9484
|
*/
|
|
@@ -10079,7 +9506,6 @@ export class EntityHealBeforeEvent {
|
|
|
10079
9506
|
}
|
|
10080
9507
|
|
|
10081
9508
|
/**
|
|
10082
|
-
* @rc
|
|
10083
9509
|
* Manages callbacks that are connected to when an entity will
|
|
10084
9510
|
* be healed.
|
|
10085
9511
|
*/
|
|
@@ -10119,7 +9545,6 @@ export class EntityHealBeforeEventSignal {
|
|
|
10119
9545
|
}
|
|
10120
9546
|
|
|
10121
9547
|
/**
|
|
10122
|
-
* @rc
|
|
10123
9548
|
* Provides information about how healing has been applied to
|
|
10124
9549
|
* an entity.
|
|
10125
9550
|
*/
|
|
@@ -10377,7 +9802,6 @@ export class EntityHurtAfterEvent {
|
|
|
10377
9802
|
}
|
|
10378
9803
|
|
|
10379
9804
|
/**
|
|
10380
|
-
* @rc
|
|
10381
9805
|
* Manages callbacks that are connected to when an entity is
|
|
10382
9806
|
* hurt.
|
|
10383
9807
|
*/
|
|
@@ -10409,7 +9833,6 @@ export class EntityHurtAfterEventSignal {
|
|
|
10409
9833
|
}
|
|
10410
9834
|
|
|
10411
9835
|
/**
|
|
10412
|
-
* @rc
|
|
10413
9836
|
* Contains information related to an entity that will be hurt.
|
|
10414
9837
|
*/
|
|
10415
9838
|
export class EntityHurtBeforeEvent {
|
|
@@ -10437,7 +9860,6 @@ export class EntityHurtBeforeEvent {
|
|
|
10437
9860
|
}
|
|
10438
9861
|
|
|
10439
9862
|
/**
|
|
10440
|
-
* @rc
|
|
10441
9863
|
* Manages callbacks that are connected to when an entity will
|
|
10442
9864
|
* be hurt.
|
|
10443
9865
|
*/
|
|
@@ -10714,7 +10136,6 @@ export class EntityItemComponent extends EntityComponent {
|
|
|
10714
10136
|
}
|
|
10715
10137
|
|
|
10716
10138
|
/**
|
|
10717
|
-
* @rc
|
|
10718
10139
|
* Contains information related to an entity having dropped
|
|
10719
10140
|
* items.
|
|
10720
10141
|
*/
|
|
@@ -10735,7 +10156,6 @@ export class EntityItemDropAfterEvent {
|
|
|
10735
10156
|
}
|
|
10736
10157
|
|
|
10737
10158
|
/**
|
|
10738
|
-
* @rc
|
|
10739
10159
|
* Manages callbacks that are connected to when an entity has
|
|
10740
10160
|
* dropped items.
|
|
10741
10161
|
*/
|
|
@@ -10769,7 +10189,6 @@ export class EntityItemDropAfterEventSignal {
|
|
|
10769
10189
|
}
|
|
10770
10190
|
|
|
10771
10191
|
/**
|
|
10772
|
-
* @rc
|
|
10773
10192
|
* Contains information related to an entity having picked up
|
|
10774
10193
|
* items.
|
|
10775
10194
|
*/
|
|
@@ -10790,7 +10209,6 @@ export class EntityItemPickupAfterEvent {
|
|
|
10790
10209
|
}
|
|
10791
10210
|
|
|
10792
10211
|
/**
|
|
10793
|
-
* @rc
|
|
10794
10212
|
* Manages callbacks that are connected to when an entity has
|
|
10795
10213
|
* picked up items.
|
|
10796
10214
|
*/
|
|
@@ -10824,7 +10242,6 @@ export class EntityItemPickupAfterEventSignal {
|
|
|
10824
10242
|
}
|
|
10825
10243
|
|
|
10826
10244
|
/**
|
|
10827
|
-
* @rc
|
|
10828
10245
|
* Contains information related to an entity picking up an
|
|
10829
10246
|
* item.
|
|
10830
10247
|
*/
|
|
@@ -10851,7 +10268,6 @@ export class EntityItemPickupBeforeEvent {
|
|
|
10851
10268
|
}
|
|
10852
10269
|
|
|
10853
10270
|
/**
|
|
10854
|
-
* @rc
|
|
10855
10271
|
* Manages callbacks that are connected to when an entity will
|
|
10856
10272
|
* pick up an item.
|
|
10857
10273
|
*/
|
|
@@ -12255,7 +11671,6 @@ export class EntityType {
|
|
|
12255
11671
|
*/
|
|
12256
11672
|
readonly id: string;
|
|
12257
11673
|
/**
|
|
12258
|
-
* @rc
|
|
12259
11674
|
* @remarks
|
|
12260
11675
|
* Key for the localization of this EntityType's name used in
|
|
12261
11676
|
* .lang files.
|
|
@@ -12500,7 +11915,6 @@ export class FeedItem {
|
|
|
12500
11915
|
*/
|
|
12501
11916
|
readonly item: string;
|
|
12502
11917
|
/**
|
|
12503
|
-
* @rc
|
|
12504
11918
|
* @remarks
|
|
12505
11919
|
* Type ID of the resulting item after feeding has occurred.
|
|
12506
11920
|
* This will usually be empty but is used for scenarios such as
|
|
@@ -13557,7 +12971,6 @@ export class ItemDurabilityComponent extends ItemComponent {
|
|
|
13557
12971
|
*/
|
|
13558
12972
|
readonly maxDurability: number;
|
|
13559
12973
|
/**
|
|
13560
|
-
* @rc
|
|
13561
12974
|
* @remarks
|
|
13562
12975
|
* Whether an item breaks or loses durability. Setting to true
|
|
13563
12976
|
* temporarily removes item's durability HUD, and freezes
|
|
@@ -14722,7 +14135,6 @@ export class ItemType {
|
|
|
14722
14135
|
*/
|
|
14723
14136
|
readonly id: string;
|
|
14724
14137
|
/**
|
|
14725
|
-
* @rc
|
|
14726
14138
|
* @remarks
|
|
14727
14139
|
* Key for the localization of this ItemType's name used in
|
|
14728
14140
|
* .lang files.
|
|
@@ -15033,7 +14445,6 @@ export class LeverActionAfterEventSignal {
|
|
|
15033
14445
|
}
|
|
15034
14446
|
|
|
15035
14447
|
/**
|
|
15036
|
-
* @rc
|
|
15037
14448
|
* A spline that linearly interpolates between points.
|
|
15038
14449
|
*/
|
|
15039
14450
|
export class LinearSpline {
|
|
@@ -15841,13 +15252,6 @@ export class Player extends Entity {
|
|
|
15841
15252
|
* Throws if the Entity or Entity ID is invalid.
|
|
15842
15253
|
*/
|
|
15843
15254
|
clearPropertyOverridesForEntity(targetEntity: Entity | string): void;
|
|
15844
|
-
/**
|
|
15845
|
-
* @rc
|
|
15846
|
-
* @remarks
|
|
15847
|
-
* The player's aim-assist settings.
|
|
15848
|
-
*
|
|
15849
|
-
*/
|
|
15850
|
-
getAimAssist(): PlayerAimAssist;
|
|
15851
15255
|
/**
|
|
15852
15256
|
* @remarks
|
|
15853
15257
|
* Returns the player's current control scheme.
|
|
@@ -16231,45 +15635,6 @@ export class Player extends Entity {
|
|
|
16231
15635
|
stopMusic(): void;
|
|
16232
15636
|
}
|
|
16233
15637
|
|
|
16234
|
-
/**
|
|
16235
|
-
* @rc
|
|
16236
|
-
* A container for APIs related to player aim-assist.
|
|
16237
|
-
*/
|
|
16238
|
-
export class PlayerAimAssist {
|
|
16239
|
-
private constructor();
|
|
16240
|
-
/**
|
|
16241
|
-
* @remarks
|
|
16242
|
-
* The player's currently active aim-assist settings, or
|
|
16243
|
-
* undefined if not active.
|
|
16244
|
-
*
|
|
16245
|
-
*/
|
|
16246
|
-
readonly settings?: PlayerAimAssistSettings;
|
|
16247
|
-
/**
|
|
16248
|
-
* @remarks
|
|
16249
|
-
* Sets the player's aim-assist settings.
|
|
16250
|
-
*
|
|
16251
|
-
* This function can't be called in restricted-execution mode.
|
|
16252
|
-
*
|
|
16253
|
-
* @param settings
|
|
16254
|
-
* Aim-assist settings to activate for the player, if undefined
|
|
16255
|
-
* aim-assist will be disabled.
|
|
16256
|
-
* @throws This function can throw errors.
|
|
16257
|
-
*
|
|
16258
|
-
* {@link minecraftcommon.ArgumentOutOfBoundsError}
|
|
16259
|
-
*
|
|
16260
|
-
* {@link minecraftcommon.EngineError}
|
|
16261
|
-
*
|
|
16262
|
-
* {@link Error}
|
|
16263
|
-
*
|
|
16264
|
-
* {@link minecraftcommon.InvalidArgumentError}
|
|
16265
|
-
*
|
|
16266
|
-
* {@link InvalidEntityError}
|
|
16267
|
-
*
|
|
16268
|
-
* {@link NamespaceNameError}
|
|
16269
|
-
*/
|
|
16270
|
-
set(settings?: PlayerAimAssistSettings): void;
|
|
16271
|
-
}
|
|
16272
|
-
|
|
16273
15638
|
/**
|
|
16274
15639
|
* Contains information regarding an event after a player
|
|
16275
15640
|
* breaks a block.
|
|
@@ -19357,14 +18722,8 @@ export class StructureManager {
|
|
|
19357
18722
|
get(identifier: string): Structure | undefined;
|
|
19358
18723
|
/**
|
|
19359
18724
|
* @remarks
|
|
19360
|
-
* Returns a list of all structures saved to the world and to
|
|
19361
|
-
* memory. Does not include structures contained in behavior
|
|
19362
|
-
* packs.
|
|
19363
|
-
*
|
|
19364
18725
|
* This function can't be called in restricted-execution mode.
|
|
19365
18726
|
*
|
|
19366
|
-
* @returns
|
|
19367
|
-
* The list of structure identifiers.
|
|
19368
18727
|
*/
|
|
19369
18728
|
getWorldStructureIds(): string[];
|
|
19370
18729
|
/**
|
|
@@ -19830,7 +19189,6 @@ export class TargetBlockHitAfterEventSignal {
|
|
|
19830
19189
|
}
|
|
19831
19190
|
|
|
19832
19191
|
/**
|
|
19833
|
-
* @rc
|
|
19834
19192
|
* This manager is used to add, remove or query temporary
|
|
19835
19193
|
* ticking areas to a dimension. These ticking areas are
|
|
19836
19194
|
* limited by a fixed amount of ticking chunks per pack
|
|
@@ -20259,7 +19617,6 @@ export class World {
|
|
|
20259
19617
|
*/
|
|
20260
19618
|
readonly scoreboard: Scoreboard;
|
|
20261
19619
|
/**
|
|
20262
|
-
* @rc
|
|
20263
19620
|
* @remarks
|
|
20264
19621
|
* The world seed.
|
|
20265
19622
|
*
|
|
@@ -20272,7 +19629,6 @@ export class World {
|
|
|
20272
19629
|
*/
|
|
20273
19630
|
readonly structureManager: StructureManager;
|
|
20274
19631
|
/**
|
|
20275
|
-
* @rc
|
|
20276
19632
|
* @remarks
|
|
20277
19633
|
* Manager for adding, removing and querying pack specific
|
|
20278
19634
|
* ticking areas.
|
|
@@ -20292,14 +19648,6 @@ export class World {
|
|
|
20292
19648
|
*
|
|
20293
19649
|
*/
|
|
20294
19650
|
getAbsoluteTime(): number;
|
|
20295
|
-
/**
|
|
20296
|
-
* @rc
|
|
20297
|
-
* @remarks
|
|
20298
|
-
* The aim-assist presets and categories that can be used in
|
|
20299
|
-
* the world.
|
|
20300
|
-
*
|
|
20301
|
-
*/
|
|
20302
|
-
getAimAssist(): AimAssistRegistry;
|
|
20303
19651
|
/**
|
|
20304
19652
|
* @remarks
|
|
20305
19653
|
* Returns an array of all active players within the world.
|
|
@@ -20779,7 +20127,6 @@ export class WorldAfterEvents {
|
|
|
20779
20127
|
*/
|
|
20780
20128
|
readonly entityDie: EntityDieAfterEventSignal;
|
|
20781
20129
|
/**
|
|
20782
|
-
* @rc
|
|
20783
20130
|
* @remarks
|
|
20784
20131
|
* This property can be read in early-execution mode.
|
|
20785
20132
|
*
|
|
@@ -20812,7 +20159,6 @@ export class WorldAfterEvents {
|
|
|
20812
20159
|
*/
|
|
20813
20160
|
readonly entityHitEntity: EntityHitEntityAfterEventSignal;
|
|
20814
20161
|
/**
|
|
20815
|
-
* @rc
|
|
20816
20162
|
* @remarks
|
|
20817
20163
|
* This event fires when an entity is hurt (takes damage).
|
|
20818
20164
|
*
|
|
@@ -20821,7 +20167,6 @@ export class WorldAfterEvents {
|
|
|
20821
20167
|
*/
|
|
20822
20168
|
readonly entityHurt: EntityHurtAfterEventSignal;
|
|
20823
20169
|
/**
|
|
20824
|
-
* @rc
|
|
20825
20170
|
* @remarks
|
|
20826
20171
|
* This event fires when an entity drops items.
|
|
20827
20172
|
*
|
|
@@ -20830,7 +20175,6 @@ export class WorldAfterEvents {
|
|
|
20830
20175
|
*/
|
|
20831
20176
|
readonly entityItemDrop: EntityItemDropAfterEventSignal;
|
|
20832
20177
|
/**
|
|
20833
|
-
* @rc
|
|
20834
20178
|
* @remarks
|
|
20835
20179
|
* This event fires when an entity picks up items.
|
|
20836
20180
|
*
|
|
@@ -21174,21 +20518,18 @@ export class WorldBeforeEvents {
|
|
|
21174
20518
|
*/
|
|
21175
20519
|
readonly effectAdd: EffectAddBeforeEventSignal;
|
|
21176
20520
|
/**
|
|
21177
|
-
* @rc
|
|
21178
20521
|
* @remarks
|
|
21179
20522
|
* This property can be read in early-execution mode.
|
|
21180
20523
|
*
|
|
21181
20524
|
*/
|
|
21182
20525
|
readonly entityHeal: EntityHealBeforeEventSignal;
|
|
21183
20526
|
/**
|
|
21184
|
-
* @rc
|
|
21185
20527
|
* @remarks
|
|
21186
20528
|
* This property can be read in early-execution mode.
|
|
21187
20529
|
*
|
|
21188
20530
|
*/
|
|
21189
20531
|
readonly entityHurt: EntityHurtBeforeEventSignal;
|
|
21190
20532
|
/**
|
|
21191
|
-
* @rc
|
|
21192
20533
|
* @remarks
|
|
21193
20534
|
* This event fires before an entity picks up an item.
|
|
21194
20535
|
*
|
|
@@ -21313,7 +20654,6 @@ export interface AABB {
|
|
|
21313
20654
|
}
|
|
21314
20655
|
|
|
21315
20656
|
/**
|
|
21316
|
-
* @rc
|
|
21317
20657
|
* Used to create camera animations.
|
|
21318
20658
|
*/
|
|
21319
20659
|
export interface AnimationOptions {
|
|
@@ -21331,9 +20671,6 @@ export interface AnimationOptions {
|
|
|
21331
20671
|
totalTimeSeconds: number;
|
|
21332
20672
|
}
|
|
21333
20673
|
|
|
21334
|
-
/**
|
|
21335
|
-
* @rc
|
|
21336
|
-
*/
|
|
21337
20674
|
export interface BiomeFilter {
|
|
21338
20675
|
excludeBiomes?: string[];
|
|
21339
20676
|
excludeTags?: string[];
|
|
@@ -21400,7 +20737,6 @@ export interface BlockCustomComponent {
|
|
|
21400
20737
|
*/
|
|
21401
20738
|
onBreak?: (arg0: BlockComponentBlockBreakEvent, arg1: CustomComponentParameters) => void;
|
|
21402
20739
|
/**
|
|
21403
|
-
* @rc
|
|
21404
20740
|
* @remarks
|
|
21405
20741
|
* This function will be called when an entity fires an event
|
|
21406
20742
|
* to this block in the world.
|
|
@@ -21640,7 +20976,6 @@ export interface BlockRaycastOptions extends BlockFilter {
|
|
|
21640
20976
|
}
|
|
21641
20977
|
|
|
21642
20978
|
/**
|
|
21643
|
-
* @rc
|
|
21644
20979
|
* Used to attach the camera to a non player entity.
|
|
21645
20980
|
*/
|
|
21646
20981
|
export interface CameraAttachOptions {
|
|
@@ -22235,7 +21570,6 @@ export interface EntityFilter {
|
|
|
22235
21570
|
}
|
|
22236
21571
|
|
|
22237
21572
|
/**
|
|
22238
|
-
* @rc
|
|
22239
21573
|
* Contains optional parameters for registering an entity heal
|
|
22240
21574
|
* event.
|
|
22241
21575
|
*/
|
|
@@ -22270,7 +21604,6 @@ export interface EntityHitInformation {
|
|
|
22270
21604
|
}
|
|
22271
21605
|
|
|
22272
21606
|
/**
|
|
22273
|
-
* @rc
|
|
22274
21607
|
* Contains optional parameters for registering an entity hurt
|
|
22275
21608
|
* after event.
|
|
22276
21609
|
*/
|
|
@@ -22306,7 +21639,6 @@ export interface EntityHurtAfterEventOptions {
|
|
|
22306
21639
|
}
|
|
22307
21640
|
|
|
22308
21641
|
/**
|
|
22309
|
-
* @rc
|
|
22310
21642
|
* Contains optional parameters for registering an entity hurt
|
|
22311
21643
|
* before event.
|
|
22312
21644
|
*/
|
|
@@ -22328,7 +21660,6 @@ export interface EntityHurtBeforeEventOptions {
|
|
|
22328
21660
|
}
|
|
22329
21661
|
|
|
22330
21662
|
/**
|
|
22331
|
-
* @rc
|
|
22332
21663
|
* An interface that is passed into {@link
|
|
22333
21664
|
* @minecraft/Server.EntityItemDropAfterEventSignal.subscribe}
|
|
22334
21665
|
* that filters out which events are passed to the provided
|
|
@@ -22352,7 +21683,6 @@ export interface EntityItemDropEventOptions {
|
|
|
22352
21683
|
}
|
|
22353
21684
|
|
|
22354
21685
|
/**
|
|
22355
|
-
* @rc
|
|
22356
21686
|
* An interface that is passed into {@link
|
|
22357
21687
|
* @minecraft/Server.EntityItemPickupAfterEventSignal.subscribe}
|
|
22358
21688
|
* and {@link
|
|
@@ -22977,7 +22307,6 @@ export interface ItemCustomComponent {
|
|
|
22977
22307
|
}
|
|
22978
22308
|
|
|
22979
22309
|
/**
|
|
22980
|
-
* @rc
|
|
22981
22310
|
* Contains options for filtering items.
|
|
22982
22311
|
*/
|
|
22983
22312
|
export interface ItemFilter {
|
|
@@ -23152,38 +22481,6 @@ export interface PlayAnimationOptions {
|
|
|
23152
22481
|
stopExpression?: string;
|
|
23153
22482
|
}
|
|
23154
22483
|
|
|
23155
|
-
/**
|
|
23156
|
-
* @rc
|
|
23157
|
-
* Settings relating to a player's aim-assist targeting.
|
|
23158
|
-
*/
|
|
23159
|
-
export interface PlayerAimAssistSettings {
|
|
23160
|
-
/**
|
|
23161
|
-
* @remarks
|
|
23162
|
-
* The view distance limit to use for aim-assist targeting.
|
|
23163
|
-
*
|
|
23164
|
-
*/
|
|
23165
|
-
distance?: number;
|
|
23166
|
-
/**
|
|
23167
|
-
* @remarks
|
|
23168
|
-
* The Id of the aim-assist preset to activate. Must have a
|
|
23169
|
-
* namespace.
|
|
23170
|
-
*
|
|
23171
|
-
*/
|
|
23172
|
-
presetId: string;
|
|
23173
|
-
/**
|
|
23174
|
-
* @remarks
|
|
23175
|
-
* The mode to use for aim-assist targeting.
|
|
23176
|
-
*
|
|
23177
|
-
*/
|
|
23178
|
-
targetMode?: AimAssistTargetMode;
|
|
23179
|
-
/**
|
|
23180
|
-
* @remarks
|
|
23181
|
-
* The view angle limit to use for aim-assist targeting.
|
|
23182
|
-
*
|
|
23183
|
-
*/
|
|
23184
|
-
viewAngle?: Vector2;
|
|
23185
|
-
}
|
|
23186
|
-
|
|
23187
22484
|
/**
|
|
23188
22485
|
* Additional options for how a sound plays for a player.
|
|
23189
22486
|
*/
|
|
@@ -23235,7 +22532,6 @@ export interface PlayerSwingEventOptions {
|
|
|
23235
22532
|
}
|
|
23236
22533
|
|
|
23237
22534
|
/**
|
|
23238
|
-
* @rc
|
|
23239
22535
|
* Key frame that holds the progress of the camera animation.
|
|
23240
22536
|
*/
|
|
23241
22537
|
export interface ProgressKeyFrame {
|
|
@@ -23502,7 +22798,6 @@ export interface RGBA extends RGB {
|
|
|
23502
22798
|
}
|
|
23503
22799
|
|
|
23504
22800
|
/**
|
|
23505
|
-
* @rc
|
|
23506
22801
|
* Key frame that holds the rotation of the camera animation.
|
|
23507
22802
|
*/
|
|
23508
22803
|
export interface RotationKeyFrame {
|
|
@@ -23589,7 +22884,6 @@ export interface SpawnEntityOptions {
|
|
|
23589
22884
|
}
|
|
23590
22885
|
|
|
23591
22886
|
/**
|
|
23592
|
-
* @rc
|
|
23593
22887
|
* Collection of key frames for camera animation.
|
|
23594
22888
|
*/
|
|
23595
22889
|
export interface SplineAnimation {
|
|
@@ -23788,7 +23082,6 @@ export interface TeleportOptions {
|
|
|
23788
23082
|
}
|
|
23789
23083
|
|
|
23790
23084
|
/**
|
|
23791
|
-
* @rc
|
|
23792
23085
|
* A context which provides information about a specific
|
|
23793
23086
|
* ticking area.
|
|
23794
23087
|
*/
|
|
@@ -23828,7 +23121,6 @@ export interface TickingArea {
|
|
|
23828
23121
|
}
|
|
23829
23122
|
|
|
23830
23123
|
/**
|
|
23831
|
-
* @rc
|
|
23832
23124
|
* Options to create a ticking area using the {@link
|
|
23833
23125
|
* TickingAreaManager}.
|
|
23834
23126
|
*/
|
|
@@ -24269,7 +23561,6 @@ export class RawMessageError extends Error {
|
|
|
24269
23561
|
}
|
|
24270
23562
|
|
|
24271
23563
|
/**
|
|
24272
|
-
* @rc
|
|
24273
23564
|
* The error returned from invalid {@link TickingAreaManager}
|
|
24274
23565
|
* method calls.
|
|
24275
23566
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.6.0
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.2.0",
|
|
17
|
-
"@minecraft/vanilla-data": ">=1.20.70
|
|
17
|
+
"@minecraft/vanilla-data": ">=1.20.70"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|