@minecraft/server 2.2.0-beta.1.21.100-preview.25 → 2.2.0-beta.1.21.100-stable
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +0 -44
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -171,7 +171,6 @@ export enum ButtonState {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* @rc
|
|
175
174
|
* The required permission level to execute the custom command.
|
|
176
175
|
*/
|
|
177
176
|
export enum CommandPermissionLevel {
|
|
@@ -302,7 +301,6 @@ export enum ContainerRulesErrorReason {
|
|
|
302
301
|
}
|
|
303
302
|
|
|
304
303
|
/**
|
|
305
|
-
* @rc
|
|
306
304
|
* Reason why custom command registration failed.
|
|
307
305
|
*/
|
|
308
306
|
export enum CustomCommandErrorReason {
|
|
@@ -349,7 +347,6 @@ export enum CustomCommandErrorReason {
|
|
|
349
347
|
}
|
|
350
348
|
|
|
351
349
|
/**
|
|
352
|
-
* @rc
|
|
353
350
|
* The types of paramaters accepted by a custom command.
|
|
354
351
|
*/
|
|
355
352
|
export enum CustomCommandParamType {
|
|
@@ -423,7 +420,6 @@ export enum CustomCommandParamType {
|
|
|
423
420
|
}
|
|
424
421
|
|
|
425
422
|
/**
|
|
426
|
-
* @rc
|
|
427
423
|
* Who executed the command.
|
|
428
424
|
*/
|
|
429
425
|
export enum CustomCommandSource {
|
|
@@ -448,9 +444,6 @@ export enum CustomCommandSource {
|
|
|
448
444
|
Server = 'Server',
|
|
449
445
|
}
|
|
450
446
|
|
|
451
|
-
/**
|
|
452
|
-
* @rc
|
|
453
|
-
*/
|
|
454
447
|
export enum CustomCommandStatus {
|
|
455
448
|
Success = 0,
|
|
456
449
|
Failure = 1,
|
|
@@ -1079,7 +1072,6 @@ export enum EntityComponentTypes {
|
|
|
1079
1072
|
*/
|
|
1080
1073
|
OnFire = 'minecraft:onfire',
|
|
1081
1074
|
/**
|
|
1082
|
-
* @rc
|
|
1083
1075
|
* @remarks
|
|
1084
1076
|
* Use this component to read the exhaustion of a player. This
|
|
1085
1077
|
* is only available on players.
|
|
@@ -1087,7 +1079,6 @@ export enum EntityComponentTypes {
|
|
|
1087
1079
|
*/
|
|
1088
1080
|
Exhaustion = 'minecraft:player.exhaustion',
|
|
1089
1081
|
/**
|
|
1090
|
-
* @rc
|
|
1091
1082
|
* @remarks
|
|
1092
1083
|
* Use this component to read the hunger of a player. This is
|
|
1093
1084
|
* only available on players.
|
|
@@ -1095,7 +1086,6 @@ export enum EntityComponentTypes {
|
|
|
1095
1086
|
*/
|
|
1096
1087
|
Hunger = 'minecraft:player.hunger',
|
|
1097
1088
|
/**
|
|
1098
|
-
* @rc
|
|
1099
1089
|
* @remarks
|
|
1100
1090
|
* Use this component to read the saturation of a player. This
|
|
1101
1091
|
* is only available on players.
|
|
@@ -2455,7 +2445,6 @@ export enum PlatformType {
|
|
|
2455
2445
|
}
|
|
2456
2446
|
|
|
2457
2447
|
/**
|
|
2458
|
-
* @rc
|
|
2459
2448
|
* Specifies the player inventory type.
|
|
2460
2449
|
*/
|
|
2461
2450
|
export enum PlayerInventoryType {
|
|
@@ -2474,7 +2463,6 @@ export enum PlayerInventoryType {
|
|
|
2474
2463
|
}
|
|
2475
2464
|
|
|
2476
2465
|
/**
|
|
2477
|
-
* @rc
|
|
2478
2466
|
* The player permission level.
|
|
2479
2467
|
*/
|
|
2480
2468
|
export enum PlayerPermissionLevel {
|
|
@@ -3570,7 +3558,6 @@ export class Block {
|
|
|
3570
3558
|
*/
|
|
3571
3559
|
readonly isWaterlogged: boolean;
|
|
3572
3560
|
/**
|
|
3573
|
-
* @rc
|
|
3574
3561
|
* @remarks
|
|
3575
3562
|
* Key for the localization of this block's name used in .lang
|
|
3576
3563
|
* files.
|
|
@@ -6314,7 +6301,6 @@ export class Container {
|
|
|
6314
6301
|
*/
|
|
6315
6302
|
clearAll(): void;
|
|
6316
6303
|
/**
|
|
6317
|
-
* @rc
|
|
6318
6304
|
* @remarks
|
|
6319
6305
|
* Attempts to find an item inside the container
|
|
6320
6306
|
*
|
|
@@ -6326,7 +6312,6 @@ export class Container {
|
|
|
6326
6312
|
*/
|
|
6327
6313
|
contains(itemStack: ItemStack): boolean;
|
|
6328
6314
|
/**
|
|
6329
|
-
* @rc
|
|
6330
6315
|
* @remarks
|
|
6331
6316
|
* Find the index of the first instance of an item inside the
|
|
6332
6317
|
* container
|
|
@@ -6339,7 +6324,6 @@ export class Container {
|
|
|
6339
6324
|
*/
|
|
6340
6325
|
find(itemStack: ItemStack): number | undefined;
|
|
6341
6326
|
/**
|
|
6342
|
-
* @rc
|
|
6343
6327
|
* @remarks
|
|
6344
6328
|
* Find the index of the last instance of an item inside the
|
|
6345
6329
|
* container
|
|
@@ -6352,7 +6336,6 @@ export class Container {
|
|
|
6352
6336
|
*/
|
|
6353
6337
|
findLast(itemStack: ItemStack): number | undefined;
|
|
6354
6338
|
/**
|
|
6355
|
-
* @rc
|
|
6356
6339
|
* @remarks
|
|
6357
6340
|
* Finds the index of the first empty slot inside the container
|
|
6358
6341
|
*
|
|
@@ -6362,7 +6345,6 @@ export class Container {
|
|
|
6362
6345
|
*/
|
|
6363
6346
|
firstEmptySlot(): number | undefined;
|
|
6364
6347
|
/**
|
|
6365
|
-
* @rc
|
|
6366
6348
|
* @remarks
|
|
6367
6349
|
* Finds the index of the first item inside the container
|
|
6368
6350
|
*
|
|
@@ -6965,7 +6947,6 @@ export class ContainerSlot {
|
|
|
6965
6947
|
}
|
|
6966
6948
|
|
|
6967
6949
|
/**
|
|
6968
|
-
* @rc
|
|
6969
6950
|
* Details about the origins of the command.
|
|
6970
6951
|
*/
|
|
6971
6952
|
export class CustomCommandOrigin {
|
|
@@ -7000,7 +6981,6 @@ export class CustomCommandOrigin {
|
|
|
7000
6981
|
}
|
|
7001
6982
|
|
|
7002
6983
|
/**
|
|
7003
|
-
* @rc
|
|
7004
6984
|
* Provides the functionality for registering custom commands.
|
|
7005
6985
|
*/
|
|
7006
6986
|
export class CustomCommandRegistry {
|
|
@@ -7143,7 +7123,6 @@ export class Dimension {
|
|
|
7143
7123
|
*/
|
|
7144
7124
|
readonly id: string;
|
|
7145
7125
|
/**
|
|
7146
|
-
* @rc
|
|
7147
7126
|
* @remarks
|
|
7148
7127
|
* Key for the localization of a dimension's name used by
|
|
7149
7128
|
* language files.
|
|
@@ -8307,7 +8286,6 @@ export class Entity {
|
|
|
8307
8286
|
*/
|
|
8308
8287
|
readonly isValid: boolean;
|
|
8309
8288
|
/**
|
|
8310
|
-
* @rc
|
|
8311
8289
|
* @remarks
|
|
8312
8290
|
* Key for the localization of this entity's name used in .lang
|
|
8313
8291
|
* files.
|
|
@@ -9824,7 +9802,6 @@ export class EntityDieAfterEventSignal {
|
|
|
9824
9802
|
export class EntityEquippableComponent extends EntityComponent {
|
|
9825
9803
|
private constructor();
|
|
9826
9804
|
/**
|
|
9827
|
-
* @rc
|
|
9828
9805
|
* @remarks
|
|
9829
9806
|
* Returns the total Armor level of the owner.
|
|
9830
9807
|
*
|
|
@@ -9834,7 +9811,6 @@ export class EntityEquippableComponent extends EntityComponent {
|
|
|
9834
9811
|
*/
|
|
9835
9812
|
readonly totalArmor: number;
|
|
9836
9813
|
/**
|
|
9837
|
-
* @rc
|
|
9838
9814
|
* @remarks
|
|
9839
9815
|
* Returns the total Toughness level of the owner.
|
|
9840
9816
|
*
|
|
@@ -9885,7 +9861,6 @@ export class EntityEquippableComponent extends EntityComponent {
|
|
|
9885
9861
|
}
|
|
9886
9862
|
|
|
9887
9863
|
/**
|
|
9888
|
-
* @rc
|
|
9889
9864
|
* Defines the interactions with this entity for Exhaustion.
|
|
9890
9865
|
* Wraps the `minecraft.player.exhaustion` attribute.
|
|
9891
9866
|
*/
|
|
@@ -10183,7 +10158,6 @@ export class EntityHitEntityAfterEventSignal {
|
|
|
10183
10158
|
}
|
|
10184
10159
|
|
|
10185
10160
|
/**
|
|
10186
|
-
* @rc
|
|
10187
10161
|
* Defines the interactions with this entity for hunger. Wraps
|
|
10188
10162
|
* the `minecraft.player.hunger` attribute.
|
|
10189
10163
|
*/
|
|
@@ -11551,7 +11525,6 @@ export class EntityRidingComponent extends EntityComponent {
|
|
|
11551
11525
|
}
|
|
11552
11526
|
|
|
11553
11527
|
/**
|
|
11554
|
-
* @rc
|
|
11555
11528
|
* Defines the interactions with this entity for Saturation.
|
|
11556
11529
|
* Wraps the `minecraft.player.saturation` attribute.
|
|
11557
11530
|
*/
|
|
@@ -13579,7 +13552,6 @@ export class ItemStack {
|
|
|
13579
13552
|
*/
|
|
13580
13553
|
keepOnDeath: boolean;
|
|
13581
13554
|
/**
|
|
13582
|
-
* @rc
|
|
13583
13555
|
* @remarks
|
|
13584
13556
|
* Key for the localization of this items's name used in .lang
|
|
13585
13557
|
* files.
|
|
@@ -14891,7 +14863,6 @@ export class Player extends Entity {
|
|
|
14891
14863
|
*/
|
|
14892
14864
|
readonly clientSystemInfo: ClientSystemInfo;
|
|
14893
14865
|
/**
|
|
14894
|
-
* @rc
|
|
14895
14866
|
* @remarks
|
|
14896
14867
|
* This property can't be edited in read-only mode.
|
|
14897
14868
|
*
|
|
@@ -14974,7 +14945,6 @@ export class Player extends Entity {
|
|
|
14974
14945
|
*/
|
|
14975
14946
|
readonly onScreenDisplay: ScreenDisplay;
|
|
14976
14947
|
/**
|
|
14977
|
-
* @rc
|
|
14978
14948
|
* @throws This property can throw when used.
|
|
14979
14949
|
*
|
|
14980
14950
|
* {@link InvalidEntityError}
|
|
@@ -15921,7 +15891,6 @@ export class PlayerGameModeChangeBeforeEventSignal {
|
|
|
15921
15891
|
}
|
|
15922
15892
|
|
|
15923
15893
|
/**
|
|
15924
|
-
* @rc
|
|
15925
15894
|
* Contains information regarding an event after changing the
|
|
15926
15895
|
* selected hotbar slot for a player.
|
|
15927
15896
|
*/
|
|
@@ -15954,7 +15923,6 @@ export class PlayerHotbarSelectedSlotChangeAfterEvent {
|
|
|
15954
15923
|
}
|
|
15955
15924
|
|
|
15956
15925
|
/**
|
|
15957
|
-
* @rc
|
|
15958
15926
|
* Manages callbacks that are connected after a player selected
|
|
15959
15927
|
* hotbar slot is changed.
|
|
15960
15928
|
*/
|
|
@@ -16436,7 +16404,6 @@ export class PlayerInteractWithEntityBeforeEventSignal {
|
|
|
16436
16404
|
}
|
|
16437
16405
|
|
|
16438
16406
|
/**
|
|
16439
|
-
* @rc
|
|
16440
16407
|
* Contains information regarding an event after a player's
|
|
16441
16408
|
* inventory item changes.
|
|
16442
16409
|
*/
|
|
@@ -16475,7 +16442,6 @@ export class PlayerInventoryItemChangeAfterEvent {
|
|
|
16475
16442
|
}
|
|
16476
16443
|
|
|
16477
16444
|
/**
|
|
16478
|
-
* @rc
|
|
16479
16445
|
* Manages callbacks that are connected after a player's
|
|
16480
16446
|
* inventory item is changed.
|
|
16481
16447
|
*/
|
|
@@ -17961,7 +17927,6 @@ export class StartupEvent {
|
|
|
17961
17927
|
*/
|
|
17962
17928
|
readonly blockComponentRegistry: BlockComponentRegistry;
|
|
17963
17929
|
/**
|
|
17964
|
-
* @rc
|
|
17965
17930
|
* @remarks
|
|
17966
17931
|
* This property can be read in early-execution mode.
|
|
17967
17932
|
*
|
|
@@ -19801,7 +19766,6 @@ export class WorldAfterEvents {
|
|
|
19801
19766
|
*/
|
|
19802
19767
|
readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
|
|
19803
19768
|
/**
|
|
19804
|
-
* @rc
|
|
19805
19769
|
* @remarks
|
|
19806
19770
|
* This event fires when a player's selected slot changes.
|
|
19807
19771
|
*
|
|
@@ -19842,7 +19806,6 @@ export class WorldAfterEvents {
|
|
|
19842
19806
|
*/
|
|
19843
19807
|
readonly playerInteractWithEntity: PlayerInteractWithEntityAfterEventSignal;
|
|
19844
19808
|
/**
|
|
19845
|
-
* @rc
|
|
19846
19809
|
* @remarks
|
|
19847
19810
|
* This event fires when an item gets added or removed to the
|
|
19848
19811
|
* player's inventory.
|
|
@@ -20588,7 +20551,6 @@ export interface ContainerRules {
|
|
|
20588
20551
|
}
|
|
20589
20552
|
|
|
20590
20553
|
/**
|
|
20591
|
-
* @rc
|
|
20592
20554
|
* Define the custom command, including name, permissions, and
|
|
20593
20555
|
* parameters.
|
|
20594
20556
|
*/
|
|
@@ -20633,7 +20595,6 @@ export interface CustomCommand {
|
|
|
20633
20595
|
}
|
|
20634
20596
|
|
|
20635
20597
|
/**
|
|
20636
|
-
* @rc
|
|
20637
20598
|
* Definition for each parameter expected by the custom
|
|
20638
20599
|
* command.
|
|
20639
20600
|
*/
|
|
@@ -20653,7 +20614,6 @@ export interface CustomCommandParameter {
|
|
|
20653
20614
|
}
|
|
20654
20615
|
|
|
20655
20616
|
/**
|
|
20656
|
-
* @rc
|
|
20657
20617
|
* Interface returned from custom command callback function.
|
|
20658
20618
|
*/
|
|
20659
20619
|
export interface CustomCommandResult {
|
|
@@ -21463,7 +21423,6 @@ export interface GreaterThanOrEqualsComparison {
|
|
|
21463
21423
|
}
|
|
21464
21424
|
|
|
21465
21425
|
/**
|
|
21466
|
-
* @rc
|
|
21467
21426
|
* Contains additional filtering options for hotbar events.
|
|
21468
21427
|
*/
|
|
21469
21428
|
export interface HotbarEventOptions {
|
|
@@ -21500,7 +21459,6 @@ export interface InputEventOptions {
|
|
|
21500
21459
|
}
|
|
21501
21460
|
|
|
21502
21461
|
/**
|
|
21503
|
-
* @rc
|
|
21504
21462
|
* Contains additional filtering options for inventory item
|
|
21505
21463
|
* events.
|
|
21506
21464
|
*/
|
|
@@ -22538,7 +22496,6 @@ export class ContainerRulesError extends Error {
|
|
|
22538
22496
|
}
|
|
22539
22497
|
|
|
22540
22498
|
/**
|
|
22541
|
-
* @rc
|
|
22542
22499
|
* Error object thrown when CustomCommandRegistry errors occur.
|
|
22543
22500
|
*/
|
|
22544
22501
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
@@ -22591,7 +22548,6 @@ export class EntitySpawnError extends Error {
|
|
|
22591
22548
|
}
|
|
22592
22549
|
|
|
22593
22550
|
/**
|
|
22594
|
-
* @rc
|
|
22595
22551
|
* The container is invalid. This can occur if the container is
|
|
22596
22552
|
* missing or deleted.
|
|
22597
22553
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server",
|
|
3
|
-
"version": "2.2.0-beta.1.21.100-
|
|
3
|
+
"version": "2.2.0-beta.1.21.100-stable",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@minecraft/common": "^1.2.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@minecraft/vanilla-data": ">=1.20.70
|
|
19
|
+
"@minecraft/vanilla-data": ">=1.20.70"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT"
|
|
22
22
|
}
|