@minecraft/server 1.11.0-beta.1.20.80-preview.23 → 1.11.0-beta.1.20.80-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.
Files changed (2) hide show
  1. package/index.d.ts +1 -99
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -15,15 +15,12 @@
15
15
  * ```json
16
16
  * {
17
17
  * "module_name": "@minecraft/server",
18
- * "version": "1.9.0"
18
+ * "version": "1.10.0"
19
19
  * }
20
20
  * ```
21
21
  *
22
22
  */
23
23
  import * as minecraftcommon from '@minecraft/common';
24
- /**
25
- * @beta
26
- */
27
24
  export enum BlockComponentTypes {
28
25
  Inventory = 'minecraft:inventory',
29
26
  LavaContainer = 'minecraft:lavaContainer',
@@ -411,9 +408,6 @@ export enum EnchantmentSlot {
411
408
  Sword = 'Sword',
412
409
  }
413
410
 
414
- /**
415
- * @beta
416
- */
417
411
  export enum EntityComponentTypes {
418
412
  AddRider = 'minecraft:addrider',
419
413
  Ageable = 'minecraft:ageable',
@@ -1190,34 +1184,29 @@ export enum HudVisibility {
1190
1184
  }
1191
1185
 
1192
1186
  /**
1193
- * @beta
1194
1187
  * The types of item components that are accessible via
1195
1188
  * function ItemStack.getComponent.
1196
1189
  */
1197
1190
  export enum ItemComponentTypes {
1198
1191
  /**
1199
- * @beta
1200
1192
  * @remarks
1201
1193
  * The minecraft:cooldown component.
1202
1194
  *
1203
1195
  */
1204
1196
  Cooldown = 'minecraft:cooldown',
1205
1197
  /**
1206
- * @beta
1207
1198
  * @remarks
1208
1199
  * The minecraft:durability component.
1209
1200
  *
1210
1201
  */
1211
1202
  Durability = 'minecraft:durability',
1212
1203
  /**
1213
- * @beta
1214
1204
  * @remarks
1215
1205
  * The minecraft:enchantable component.
1216
1206
  *
1217
1207
  */
1218
1208
  Enchantable = 'minecraft:enchantable',
1219
1209
  /**
1220
- * @beta
1221
1210
  * @remarks
1222
1211
  * The minecraft:food component.
1223
1212
  *
@@ -1433,18 +1422,12 @@ export enum SignSide {
1433
1422
  Front = 'Front',
1434
1423
  }
1435
1424
 
1436
- /**
1437
- * @beta
1438
- */
1439
1425
  export enum StructureAnimationMode {
1440
1426
  Blocks = 'Blocks',
1441
1427
  Layers = 'Layers',
1442
1428
  None = 'None',
1443
1429
  }
1444
1430
 
1445
- /**
1446
- * @beta
1447
- */
1448
1431
  export enum StructureMirrorAxis {
1449
1432
  None = 'None',
1450
1433
  X = 'X',
@@ -1452,9 +1435,6 @@ export enum StructureMirrorAxis {
1452
1435
  Z = 'Z',
1453
1436
  }
1454
1437
 
1455
- /**
1456
- * @beta
1457
- */
1458
1438
  export enum StructureRotation {
1459
1439
  None = 'None',
1460
1440
  Rotate180 = 'Rotate180',
@@ -1462,9 +1442,6 @@ export enum StructureRotation {
1462
1442
  Rotate90 = 'Rotate90',
1463
1443
  }
1464
1444
 
1465
- /**
1466
- * @beta
1467
- */
1468
1445
  export enum StructureSaveMode {
1469
1446
  Memory = 'Memory',
1470
1447
  World = 'World',
@@ -2011,7 +1988,6 @@ export class Block {
2011
1988
  */
2012
1989
  getComponent<T extends keyof BlockComponentTypeMap>(componentId: T): BlockComponentTypeMap[T] | undefined;
2013
1990
  /**
2014
- * @beta
2015
1991
  * @remarks
2016
1992
  * Creates a prototype item stack based on this block that can
2017
1993
  * be used with Container/ContainerSlot APIs.
@@ -2702,7 +2678,6 @@ export class BlockPermutation {
2702
2678
  */
2703
2679
  getAllStates(): Record<string, boolean | number | string>;
2704
2680
  /**
2705
- * @beta
2706
2681
  * @remarks
2707
2682
  * Retrieves a prototype item stack based on this block
2708
2683
  * permutation that can be used with item
@@ -8192,7 +8167,6 @@ export class EntityOnFireComponent extends EntityComponent {
8192
8167
  }
8193
8168
 
8194
8169
  /**
8195
- * @beta
8196
8170
  * The projectile component controls the properties of a
8197
8171
  * projectile entity and allows it to be shot in a given
8198
8172
  * direction.
@@ -8827,7 +8801,6 @@ export class EntityTameMountComponent extends EntityComponent {
8827
8801
  }
8828
8802
 
8829
8803
  /**
8830
- * @beta
8831
8804
  * Represents information about a type of entity.
8832
8805
  */
8833
8806
  export class EntityType {
@@ -8841,9 +8814,6 @@ export class EntityType {
8841
8814
  readonly id: string;
8842
8815
  }
8843
8816
 
8844
- /**
8845
- * @beta
8846
- */
8847
8817
  // @ts-ignore Class inheritance allowed for native defined classes
8848
8818
  export class EntityTypeFamilyComponent extends EntityComponent {
8849
8819
  private constructor();
@@ -8879,7 +8849,6 @@ export class EntityTypeIterator implements Iterable<EntityType> {
8879
8849
  }
8880
8850
 
8881
8851
  /**
8882
- * @beta
8883
8852
  * Used for accessing all entity types currently available for
8884
8853
  * use within the world.
8885
8854
  */
@@ -9598,24 +9567,10 @@ export class ItemComponent extends Component {
9598
9567
 
9599
9568
  /**
9600
9569
  * @beta
9601
- * Provides the functionality for registering custom components
9602
- * for items.
9603
9570
  */
9604
9571
  export class ItemComponentRegistry {
9605
9572
  private constructor();
9606
9573
  /**
9607
- * @remarks
9608
- * Registers an item custom component that can be used in item
9609
- * JSON configuration.
9610
- *
9611
- * @param name
9612
- * The id that represents this custom component. Must have a
9613
- * namespace. This id can be specified in a item's JSON
9614
- * configuration under the 'minecraft:custom_components' item
9615
- * component.
9616
- * @param itemCustomComponent
9617
- * The collection of event functions that will be called when
9618
- * the event occurs on an item using this custom component id.
9619
9574
  * @throws This function can throw errors.
9620
9575
  *
9621
9576
  * {@link ItemCustomComponentAlreadyRegisteredError}
@@ -9633,26 +9588,14 @@ export class ItemComponentRegistry {
9633
9588
 
9634
9589
  /**
9635
9590
  * @beta
9636
- * Contains information regarding the use of an item.
9637
9591
  */
9638
9592
  export class ItemComponentUseEvent {
9639
9593
  private constructor();
9640
- /**
9641
- * @remarks
9642
- * The item stack when the item was used.
9643
- *
9644
- */
9645
9594
  readonly itemStack?: ItemStack;
9646
- /**
9647
- * @remarks
9648
- * The player who used the item.
9649
- *
9650
- */
9651
9595
  readonly source: Player;
9652
9596
  }
9653
9597
 
9654
9598
  /**
9655
- * @beta
9656
9599
  * When present on an item, this item has a cooldown effect
9657
9600
  * when used by entities.
9658
9601
  */
@@ -11400,7 +11343,6 @@ export class Player extends Entity {
11400
11343
  */
11401
11344
  isOp(): boolean;
11402
11345
  /**
11403
- * @beta
11404
11346
  * @remarks
11405
11347
  * Plays a music track that only this particular player can
11406
11348
  * hear.
@@ -11437,7 +11379,6 @@ export class Player extends Entity {
11437
11379
  */
11438
11380
  postClientMessage(id: string, value: string): void;
11439
11381
  /**
11440
- * @beta
11441
11382
  * @remarks
11442
11383
  * Queues an additional music track that only this particular
11443
11384
  * player can hear. If a track is not playing, a music track
@@ -11601,7 +11542,6 @@ export class Player extends Entity {
11601
11542
  */
11602
11543
  startItemCooldown(cooldownCategory: string, tickDuration: number): void;
11603
11544
  /**
11604
- * @beta
11605
11545
  * @remarks
11606
11546
  * Stops any music tracks from playing for this particular
11607
11547
  * player.
@@ -13220,7 +13160,6 @@ export class ServerMessageAfterEventSignal {
13220
13160
  }
13221
13161
 
13222
13162
  /**
13223
- * @beta
13224
13163
  * Represents a loaded structure template (.mcstructure file).
13225
13164
  * Structures can be placed in a world using the /structure
13226
13165
  * command or the {@link StructureManager} APIs.
@@ -13363,7 +13302,6 @@ export class Structure {
13363
13302
  }
13364
13303
 
13365
13304
  /**
13366
- * @beta
13367
13305
  * Manager for Structure related APIs. Includes APIs for
13368
13306
  * creating, getting, placing and deleting Structures.
13369
13307
  */
@@ -14097,7 +14035,6 @@ export class World {
14097
14035
  */
14098
14036
  readonly scoreboard: Scoreboard;
14099
14037
  /**
14100
- * @beta
14101
14038
  * @remarks
14102
14039
  * Returns the manager for {@link Structure} related APIs.
14103
14040
  *
@@ -14874,7 +14811,6 @@ export class WorldAfterEvents {
14874
14811
  */
14875
14812
  readonly weatherChange: WeatherChangeAfterEventSignal;
14876
14813
  /**
14877
- * @beta
14878
14814
  * @remarks
14879
14815
  * This event fires when the script environment is initialized
14880
14816
  * on a World.
@@ -14988,7 +14924,6 @@ export class WorldBeforeEvents {
14988
14924
  }
14989
14925
 
14990
14926
  /**
14991
- * @beta
14992
14927
  * Contains information and methods that can be used at the
14993
14928
  * initialization of the scripting environment for a World.
14994
14929
  */
@@ -14997,7 +14932,6 @@ export class WorldInitializeAfterEvent {
14997
14932
  }
14998
14933
 
14999
14934
  /**
15000
- * @beta
15001
14935
  * Manages callbacks that are run on the first tick of the
15002
14936
  * World. Do note that this event may run multiple times within
15003
14937
  * a session in the case that the /reload command is used.
@@ -15036,12 +14970,6 @@ export class WorldInitializeAfterEventSignal {
15036
14970
  export class WorldInitializeBeforeEvent {
15037
14971
  private constructor();
15038
14972
  readonly blockTypeRegistry: BlockComponentRegistry;
15039
- /**
15040
- * @remarks
15041
- * Provides the functionality for registering custom components
15042
- * for items.
15043
- *
15044
- */
15045
14973
  readonly itemComponentRegistry: ItemComponentRegistry;
15046
14974
  }
15047
14975
 
@@ -16174,16 +16102,8 @@ export interface GreaterThanOrEqualsComparison {
16174
16102
 
16175
16103
  /**
16176
16104
  * @beta
16177
- * Contains a set of events that will be raised for an item.
16178
- * This object must be bound using the ItemComponentRegistry.
16179
16105
  */
16180
16106
  export interface ItemCustomComponent {
16181
- /**
16182
- * @remarks
16183
- * This function will be called when an item containing this
16184
- * component is used by a player.
16185
- *
16186
- */
16187
16107
  onUse?: (arg: ItemComponentUseEvent) => void;
16188
16108
  }
16189
16109
 
@@ -16314,9 +16234,6 @@ export interface PlayerSoundOptions {
16314
16234
  volume?: number;
16315
16235
  }
16316
16236
 
16317
- /**
16318
- * @beta
16319
- */
16320
16237
  export interface ProjectileShootOptions {
16321
16238
  uncertainty?: number;
16322
16239
  }
@@ -16560,7 +16477,6 @@ export interface SpawnEntityOptions {
16560
16477
  }
16561
16478
 
16562
16479
  /**
16563
- * @beta
16564
16480
  * Provides additional options for {@link
16565
16481
  * StructureManager.createFromWorld}
16566
16482
  */
@@ -16589,7 +16505,6 @@ export interface StructureCreateOptions {
16589
16505
  }
16590
16506
 
16591
16507
  /**
16592
- * @beta
16593
16508
  * Provides additional options for {@link
16594
16509
  * StructureManager.place}
16595
16510
  */
@@ -16857,7 +16772,6 @@ export class InvalidContainerSlotError extends Error {
16857
16772
  }
16858
16773
 
16859
16774
  /**
16860
- * @beta
16861
16775
  * Thrown when a Structure is invalid. A structure becomes
16862
16776
  * invalid when it is deleted.
16863
16777
  */
@@ -16868,8 +16782,6 @@ export class InvalidStructureError extends Error {
16868
16782
 
16869
16783
  /**
16870
16784
  * @beta
16871
- * Thrown when trying to register an item custom component with
16872
- * a name that has already been registered.
16873
16785
  */
16874
16786
  // @ts-ignore Class inheritance allowed for native defined classes
16875
16787
  export class ItemCustomComponentAlreadyRegisteredError extends Error {
@@ -16878,8 +16790,6 @@ export class ItemCustomComponentAlreadyRegisteredError extends Error {
16878
16790
 
16879
16791
  /**
16880
16792
  * @beta
16881
- * Thrown when trying to register an item custom component with
16882
- * an invalid namespace.
16883
16793
  */
16884
16794
  // @ts-ignore Class inheritance allowed for native defined classes
16885
16795
  export class ItemCustomComponentNameError extends Error {
@@ -16888,8 +16798,6 @@ export class ItemCustomComponentNameError extends Error {
16888
16798
 
16889
16799
  /**
16890
16800
  * @beta
16891
- * Thrown after using the /reload command when trying to
16892
- * register a previously unregistered item custom component.
16893
16801
  */
16894
16802
  // @ts-ignore Class inheritance allowed for native defined classes
16895
16803
  export class ItemCustomComponentReloadNewComponentError extends Error {
@@ -16898,9 +16806,6 @@ export class ItemCustomComponentReloadNewComponentError extends Error {
16898
16806
 
16899
16807
  /**
16900
16808
  * @beta
16901
- * Thrown after using the /reload command when trying to
16902
- * register a previously registered item custom component that
16903
- * handles a new event.
16904
16809
  */
16905
16810
  // @ts-ignore Class inheritance allowed for native defined classes
16906
16811
  export class ItemCustomComponentReloadNewEventError extends Error {
@@ -16909,9 +16814,6 @@ export class ItemCustomComponentReloadNewEventError extends Error {
16909
16814
 
16910
16815
  /**
16911
16816
  * @beta
16912
- * Thrown after using the /reload command when trying to
16913
- * register a previously registered item custom component with
16914
- * a newer API version.
16915
16817
  */
16916
16818
  // @ts-ignore Class inheritance allowed for native defined classes
16917
16819
  export class ItemCustomComponentReloadVersionError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "1.11.0-beta.1.20.80-preview.23",
3
+ "version": "1.11.0-beta.1.20.80-stable",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {