@minecraft/server 2.3.0-beta.1.21.110-preview.20 → 2.3.0-beta.1.21.110-preview.23

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 (3) hide show
  1. package/README.md +8 -8
  2. package/index.d.ts +131 -125
  3. package/package.json +19 -19
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # `@minecraft/server`
2
-
3
- Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
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
- See full documentation for this module here:
8
-
1
+ # `@minecraft/server`
2
+
3
+ Contains many types related to manipulating a Minecraft world, including entities, blocks, dimensions, and more.
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
+ See full documentation for this module here:
8
+
9
9
  https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server
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 {
@@ -346,10 +344,16 @@ export enum CustomCommandErrorReason {
346
344
  *
347
345
  */
348
346
  RegistryReadOnly = 'RegistryReadOnly',
347
+ /**
348
+ * @beta
349
+ * @remarks
350
+ * Non enum type command parameters cannot use enumName.
351
+ *
352
+ */
353
+ UnexpectedEnumName = 'UnexpectedEnumName',
349
354
  }
350
355
 
351
356
  /**
352
- * @rc
353
357
  * The types of paramaters accepted by a custom command.
354
358
  */
355
359
  export enum CustomCommandParamType {
@@ -423,7 +427,6 @@ export enum CustomCommandParamType {
423
427
  }
424
428
 
425
429
  /**
426
- * @rc
427
430
  * Who executed the command.
428
431
  */
429
432
  export enum CustomCommandSource {
@@ -448,9 +451,6 @@ export enum CustomCommandSource {
448
451
  Server = 'Server',
449
452
  }
450
453
 
451
- /**
452
- * @rc
453
- */
454
454
  export enum CustomCommandStatus {
455
455
  Success = 0,
456
456
  Failure = 1,
@@ -1079,7 +1079,6 @@ export enum EntityComponentTypes {
1079
1079
  */
1080
1080
  OnFire = 'minecraft:onfire',
1081
1081
  /**
1082
- * @rc
1083
1082
  * @remarks
1084
1083
  * Use this component to read the exhaustion of a player. This
1085
1084
  * is only available on players.
@@ -1087,7 +1086,6 @@ export enum EntityComponentTypes {
1087
1086
  */
1088
1087
  Exhaustion = 'minecraft:player.exhaustion',
1089
1088
  /**
1090
- * @rc
1091
1089
  * @remarks
1092
1090
  * Use this component to read the hunger of a player. This is
1093
1091
  * only available on players.
@@ -1095,7 +1093,6 @@ export enum EntityComponentTypes {
1095
1093
  */
1096
1094
  Hunger = 'minecraft:player.hunger',
1097
1095
  /**
1098
- * @rc
1099
1096
  * @remarks
1100
1097
  * Use this component to read the saturation of a player. This
1101
1098
  * is only available on players.
@@ -2455,7 +2452,6 @@ export enum PlatformType {
2455
2452
  }
2456
2453
 
2457
2454
  /**
2458
- * @rc
2459
2455
  * Specifies the player inventory type.
2460
2456
  */
2461
2457
  export enum PlayerInventoryType {
@@ -2474,7 +2470,6 @@ export enum PlayerInventoryType {
2474
2470
  }
2475
2471
 
2476
2472
  /**
2477
- * @rc
2478
2473
  * The player permission level.
2479
2474
  */
2480
2475
  export enum PlayerPermissionLevel {
@@ -3577,7 +3572,6 @@ export class Block {
3577
3572
  */
3578
3573
  readonly isWaterlogged: boolean;
3579
3574
  /**
3580
- * @rc
3581
3575
  * @remarks
3582
3576
  * Key for the localization of this block's name used in .lang
3583
3577
  * files.
@@ -3814,6 +3808,23 @@ export class Block {
3814
3808
  * {@link LocationOutOfWorldBoundariesError}
3815
3809
  */
3816
3810
  getItemStack(amount?: number, withData?: boolean): ItemStack | undefined;
3811
+ /**
3812
+ * @beta
3813
+ * @remarks
3814
+ * Returns the total brightness level of light shining on a
3815
+ * certain block.
3816
+ *
3817
+ * This function can't be called in read-only mode.
3818
+ *
3819
+ * @returns
3820
+ * The brightness level on the block.
3821
+ * @throws This function can throw errors.
3822
+ *
3823
+ * {@link minecraftcommon.InvalidArgumentError}
3824
+ *
3825
+ * {@link LocationInUnloadedChunkError}
3826
+ */
3827
+ getLightLevel(): number;
3817
3828
  /**
3818
3829
  * @beta
3819
3830
  * @throws This function can throw errors.
@@ -3837,6 +3848,23 @@ export class Block {
3837
3848
  * {@link LocationOutOfWorldBoundariesError}
3838
3849
  */
3839
3850
  getRedstonePower(): number | undefined;
3851
+ /**
3852
+ * @beta
3853
+ * @remarks
3854
+ * Returns the brightness level of light shining from the sky
3855
+ * on a certain block.
3856
+ *
3857
+ * This function can't be called in read-only mode.
3858
+ *
3859
+ * @returns
3860
+ * The brightness level on the block.
3861
+ * @throws This function can throw errors.
3862
+ *
3863
+ * {@link minecraftcommon.InvalidArgumentError}
3864
+ *
3865
+ * {@link LocationInUnloadedChunkError}
3866
+ */
3867
+ getSkyLightLevel(): number;
3840
3868
  /**
3841
3869
  * @remarks
3842
3870
  * Returns a set of tags for a block.
@@ -6321,7 +6349,6 @@ export class Container {
6321
6349
  */
6322
6350
  clearAll(): void;
6323
6351
  /**
6324
- * @rc
6325
6352
  * @remarks
6326
6353
  * Attempts to find an item inside the container
6327
6354
  *
@@ -6333,7 +6360,6 @@ export class Container {
6333
6360
  */
6334
6361
  contains(itemStack: ItemStack): boolean;
6335
6362
  /**
6336
- * @rc
6337
6363
  * @remarks
6338
6364
  * Find the index of the first instance of an item inside the
6339
6365
  * container
@@ -6346,7 +6372,6 @@ export class Container {
6346
6372
  */
6347
6373
  find(itemStack: ItemStack): number | undefined;
6348
6374
  /**
6349
- * @rc
6350
6375
  * @remarks
6351
6376
  * Find the index of the last instance of an item inside the
6352
6377
  * container
@@ -6359,7 +6384,6 @@ export class Container {
6359
6384
  */
6360
6385
  findLast(itemStack: ItemStack): number | undefined;
6361
6386
  /**
6362
- * @rc
6363
6387
  * @remarks
6364
6388
  * Finds the index of the first empty slot inside the container
6365
6389
  *
@@ -6369,7 +6393,6 @@ export class Container {
6369
6393
  */
6370
6394
  firstEmptySlot(): number | undefined;
6371
6395
  /**
6372
- * @rc
6373
6396
  * @remarks
6374
6397
  * Finds the index of the first item inside the container
6375
6398
  *
@@ -6972,7 +6995,6 @@ export class ContainerSlot {
6972
6995
  }
6973
6996
 
6974
6997
  /**
6975
- * @rc
6976
6998
  * Details about the origins of the command.
6977
6999
  */
6978
7000
  export class CustomCommandOrigin {
@@ -7007,7 +7029,6 @@ export class CustomCommandOrigin {
7007
7029
  }
7008
7030
 
7009
7031
  /**
7010
- * @rc
7011
7032
  * Provides the functionality for registering custom commands.
7012
7033
  */
7013
7034
  export class CustomCommandRegistry {
@@ -7150,7 +7171,6 @@ export class Dimension {
7150
7171
  */
7151
7172
  readonly id: string;
7152
7173
  /**
7153
- * @rc
7154
7174
  * @remarks
7155
7175
  * Key for the localization of a dimension's name used by
7156
7176
  * language files.
@@ -8352,7 +8372,6 @@ export class Entity {
8352
8372
  */
8353
8373
  readonly isValid: boolean;
8354
8374
  /**
8355
- * @rc
8356
8375
  * @remarks
8357
8376
  * Key for the localization of this entity's name used in .lang
8358
8377
  * files.
@@ -9869,7 +9888,6 @@ export class EntityDieAfterEventSignal {
9869
9888
  export class EntityEquippableComponent extends EntityComponent {
9870
9889
  private constructor();
9871
9890
  /**
9872
- * @rc
9873
9891
  * @remarks
9874
9892
  * Returns the total Armor level of the owner.
9875
9893
  *
@@ -9879,7 +9897,6 @@ export class EntityEquippableComponent extends EntityComponent {
9879
9897
  */
9880
9898
  readonly totalArmor: number;
9881
9899
  /**
9882
- * @rc
9883
9900
  * @remarks
9884
9901
  * Returns the total Toughness level of the owner.
9885
9902
  *
@@ -9930,7 +9947,6 @@ export class EntityEquippableComponent extends EntityComponent {
9930
9947
  }
9931
9948
 
9932
9949
  /**
9933
- * @rc
9934
9950
  * Defines the interactions with this entity for Exhaustion.
9935
9951
  * Wraps the `minecraft.player.exhaustion` attribute.
9936
9952
  */
@@ -10228,7 +10244,6 @@ export class EntityHitEntityAfterEventSignal {
10228
10244
  }
10229
10245
 
10230
10246
  /**
10231
- * @rc
10232
10247
  * Defines the interactions with this entity for hunger. Wraps
10233
10248
  * the `minecraft.player.hunger` attribute.
10234
10249
  */
@@ -11596,7 +11611,6 @@ export class EntityRidingComponent extends EntityComponent {
11596
11611
  }
11597
11612
 
11598
11613
  /**
11599
- * @rc
11600
11614
  * Defines the interactions with this entity for Saturation.
11601
11615
  * Wraps the `minecraft.player.saturation` attribute.
11602
11616
  */
@@ -13441,25 +13455,26 @@ export class ItemPotionComponent extends ItemComponent {
13441
13455
  private constructor();
13442
13456
  /**
13443
13457
  * @remarks
13444
- * The PotionEffectType associated with the potion item.
13458
+ * The PotionDeliveryType associated with the potion item.
13445
13459
  *
13446
13460
  * @throws This property can throw when used.
13447
- */
13448
- readonly potionEffectType: PotionEffectType;
13449
- /**
13450
- * @remarks
13451
- * The PotionLiquidType associated with the potion item.
13452
13461
  *
13453
- * @throws This property can throw when used.
13462
+ * {@link minecraftcommon.EngineError}
13463
+ *
13464
+ * {@link Error}
13454
13465
  */
13455
- readonly potionLiquidType: PotionLiquidType;
13466
+ readonly potionDeliveryType: PotionDeliveryType;
13456
13467
  /**
13457
13468
  * @remarks
13458
- * The PotionModifierType associated with the potion item.
13469
+ * The PotionEffectType associated with the potion item.
13459
13470
  *
13460
13471
  * @throws This property can throw when used.
13472
+ *
13473
+ * {@link minecraftcommon.EngineError}
13474
+ *
13475
+ * {@link Error}
13461
13476
  */
13462
- readonly potionModifierType: PotionModifierType;
13477
+ readonly potionEffectType: PotionEffectType;
13463
13478
  static readonly componentId = 'minecraft:potion';
13464
13479
  }
13465
13480
 
@@ -13624,7 +13639,6 @@ export class ItemStack {
13624
13639
  */
13625
13640
  keepOnDeath: boolean;
13626
13641
  /**
13627
- * @rc
13628
13642
  * @remarks
13629
13643
  * Key for the localization of this items's name used in .lang
13630
13644
  * files.
@@ -14043,16 +14057,6 @@ export class ItemStack {
14043
14057
  * ```
14044
14058
  */
14045
14059
  setLore(loreList?: (RawMessage | string)[]): void;
14046
- /**
14047
- * @beta
14048
- * @remarks
14049
- * Helper function for creating potion items.
14050
- *
14051
- * This function can't be called in read-only mode.
14052
- *
14053
- * @throws This function can throw errors.
14054
- */
14055
- static createPotion(options: PotionOptions): ItemStack;
14056
14060
  }
14057
14061
 
14058
14062
  /**
@@ -14979,7 +14983,6 @@ export class Player extends Entity {
14979
14983
  */
14980
14984
  readonly clientSystemInfo: ClientSystemInfo;
14981
14985
  /**
14982
- * @rc
14983
14986
  * @remarks
14984
14987
  * This property can't be edited in read-only mode.
14985
14988
  *
@@ -15062,7 +15065,6 @@ export class Player extends Entity {
15062
15065
  */
15063
15066
  readonly onScreenDisplay: ScreenDisplay;
15064
15067
  /**
15065
- * @rc
15066
15068
  * @throws This property can throw when used.
15067
15069
  *
15068
15070
  * {@link InvalidEntityError}
@@ -16009,7 +16011,6 @@ export class PlayerGameModeChangeBeforeEventSignal {
16009
16011
  }
16010
16012
 
16011
16013
  /**
16012
- * @rc
16013
16014
  * Contains information regarding an event after changing the
16014
16015
  * selected hotbar slot for a player.
16015
16016
  */
@@ -16042,7 +16043,6 @@ export class PlayerHotbarSelectedSlotChangeAfterEvent {
16042
16043
  }
16043
16044
 
16044
16045
  /**
16045
- * @rc
16046
16046
  * Manages callbacks that are connected after a player selected
16047
16047
  * hotbar slot is changed.
16048
16048
  */
@@ -16524,7 +16524,6 @@ export class PlayerInteractWithEntityBeforeEventSignal {
16524
16524
  }
16525
16525
 
16526
16526
  /**
16527
- * @rc
16528
16527
  * Contains information regarding an event after a player's
16529
16528
  * inventory item changes.
16530
16529
  */
@@ -16563,7 +16562,6 @@ export class PlayerInventoryItemChangeAfterEvent {
16563
16562
  }
16564
16563
 
16565
16564
  /**
16566
- * @rc
16567
16565
  * Manages callbacks that are connected after a player's
16568
16566
  * inventory item is changed.
16569
16567
  */
@@ -16927,41 +16925,65 @@ export class PlayerSpawnAfterEventSignal {
16927
16925
 
16928
16926
  /**
16929
16927
  * @beta
16930
- * Represents a type of potion effect - like healing or leaping
16931
- * - that can be used with PotionOptions.
16932
- */
16933
- export class PotionEffectType {
16934
- private constructor();
16935
- readonly id: string;
16936
- }
16937
-
16938
- /**
16939
- * @beta
16940
- * Represents a type of potion liquid - like splash, or
16941
- * lingering - that can be used with PotionOptions.
16928
+ * Represents how the potion effect is delivered.
16942
16929
  */
16943
- export class PotionLiquidType {
16930
+ export class PotionDeliveryType {
16944
16931
  private constructor();
16945
16932
  readonly id: string;
16946
16933
  }
16947
16934
 
16948
16935
  /**
16949
16936
  * @beta
16950
- * Represents a type of potion modifier - like strong, or long
16951
- * - that can be used with PotionOptions.
16937
+ * Represents a type of potion effect - like healing or
16938
+ * leaping.
16952
16939
  */
16953
- export class PotionModifierType {
16940
+ export class PotionEffectType {
16954
16941
  private constructor();
16942
+ /**
16943
+ * @remarks
16944
+ * Duration of the effect when applied to an entity in ticks.
16945
+ * Undefined means the effect does not expire.
16946
+ *
16947
+ * @throws This property can throw when used.
16948
+ *
16949
+ * {@link minecraftcommon.EngineError}
16950
+ */
16951
+ readonly durationTicks?: number;
16955
16952
  readonly id: string;
16956
16953
  }
16957
16954
 
16958
16955
  /**
16959
16956
  * @beta
16960
- * Used for accessing all potion effects, liquids, and
16961
- * modifiers currently available for use within the world.
16957
+ * Used for accessing all potion effect types, delivery types,
16958
+ * and creating potions.
16962
16959
  */
16963
16960
  export class Potions {
16964
16961
  private constructor();
16962
+ /**
16963
+ * @remarks
16964
+ * Retrieves handles for all registered potion delivery types.
16965
+ *
16966
+ * @returns
16967
+ * Array of all registered delivery type handles.
16968
+ */
16969
+ static getAllDeliveryTypes(): PotionDeliveryType[];
16970
+ /**
16971
+ * @remarks
16972
+ * Retrieves all type handle for all registered potion effects.
16973
+ *
16974
+ * @returns
16975
+ * Array of all registered effect type handles.
16976
+ */
16977
+ static getAllEffectTypes(): PotionEffectType[];
16978
+ /**
16979
+ * @remarks
16980
+ * Retrieves a type handle for a specified potion delivery id.
16981
+ *
16982
+ * @returns
16983
+ * A type handle wrapping the valid delivery id, or undefined
16984
+ * for an invalid delivery id.
16985
+ */
16986
+ static getDeliveryType(potionDeliveryId: string): PotionDeliveryType | undefined;
16965
16987
  /**
16966
16988
  * @remarks
16967
16989
  * Retrieves a type handle for a specified potion effect id.
@@ -16973,25 +16995,23 @@ export class Potions {
16973
16995
  * A type handle wrapping the valid effect id, or undefined for
16974
16996
  * an invalid effect id.
16975
16997
  */
16976
- static getPotionEffectType(potionEffectId: string): PotionEffectType | undefined;
16998
+ static getEffectType(potionEffectId: string): PotionEffectType | undefined;
16977
16999
  /**
16978
17000
  * @remarks
16979
- * Retrieves a type handle for a specified potion liquid id.
17001
+ * Creates a potion given an effect and delivery type.
16980
17002
  *
16981
- * @returns
16982
- * A type handle wrapping the valid liquid id, or undefined for
16983
- * an invalid liquid id.
16984
- */
16985
- static getPotionLiquidType(potionLiquidId: string): PotionLiquidType | undefined;
16986
- /**
16987
- * @remarks
16988
- * Retrieves a type handle for a specified potion modifier id.
17003
+ * @throws This function can throw errors.
16989
17004
  *
16990
- * @returns
16991
- * A type handle wrapping the valid modifier id, or undefined
16992
- * for an invalid modifier id.
17005
+ * {@link minecraftcommon.EngineError}
17006
+ *
17007
+ * {@link InvalidPotionDeliveryTypeError}
17008
+ *
17009
+ * {@link InvalidPotionEffectTypeError}
16993
17010
  */
16994
- static getPotionModifierType(potionModifierId: string): PotionModifierType | undefined;
17011
+ static resolve<
17012
+ T extends string = minecraftvanilladata.MinecraftPotionEffectTypes,
17013
+ U extends string = minecraftvanilladata.MinecraftPotionDeliveryTypes,
17014
+ >(potionEffectType: PotionEffectType | T, potionDeliveryType: PotionDeliveryType | U): ItemStack;
16995
17015
  }
16996
17016
 
16997
17017
  /**
@@ -18049,7 +18069,6 @@ export class StartupEvent {
18049
18069
  */
18050
18070
  readonly blockComponentRegistry: BlockComponentRegistry;
18051
18071
  /**
18052
- * @rc
18053
18072
  * @remarks
18054
18073
  * This property can be read in early-execution mode.
18055
18074
  *
@@ -19905,7 +19924,6 @@ export class WorldAfterEvents {
19905
19924
  */
19906
19925
  readonly playerGameModeChange: PlayerGameModeChangeAfterEventSignal;
19907
19926
  /**
19908
- * @rc
19909
19927
  * @remarks
19910
19928
  * This event fires when a player's selected slot changes.
19911
19929
  *
@@ -19946,7 +19964,6 @@ export class WorldAfterEvents {
19946
19964
  */
19947
19965
  readonly playerInteractWithEntity: PlayerInteractWithEntityAfterEventSignal;
19948
19966
  /**
19949
- * @rc
19950
19967
  * @remarks
19951
19968
  * This event fires when an item gets added or removed to the
19952
19969
  * player's inventory.
@@ -20692,7 +20709,6 @@ export interface ContainerRules {
20692
20709
  }
20693
20710
 
20694
20711
  /**
20695
- * @rc
20696
20712
  * Define the custom command, including name, permissions, and
20697
20713
  * parameters.
20698
20714
  */
@@ -20737,11 +20753,19 @@ export interface CustomCommand {
20737
20753
  }
20738
20754
 
20739
20755
  /**
20740
- * @rc
20741
20756
  * Definition for each parameter expected by the custom
20742
20757
  * command.
20743
20758
  */
20744
20759
  export interface CustomCommandParameter {
20760
+ /**
20761
+ * @beta
20762
+ * @remarks
20763
+ * Can be used to reference the enum name when {@link
20764
+ * CustomCommandParamType} is 'Enum'. Allows the parameter name
20765
+ * to be different from the enum name.
20766
+ *
20767
+ */
20768
+ enumName?: string;
20745
20769
  /**
20746
20770
  * @remarks
20747
20771
  * The name of parameter as it appears on the command line.
@@ -20757,7 +20781,6 @@ export interface CustomCommandParameter {
20757
20781
  }
20758
20782
 
20759
20783
  /**
20760
- * @rc
20761
20784
  * Interface returned from custom command callback function.
20762
20785
  */
20763
20786
  export interface CustomCommandResult {
@@ -21567,7 +21590,6 @@ export interface GreaterThanOrEqualsComparison {
21567
21590
  }
21568
21591
 
21569
21592
  /**
21570
- * @rc
21571
21593
  * Contains additional filtering options for hotbar events.
21572
21594
  */
21573
21595
  export interface HotbarEventOptions {
@@ -21604,7 +21626,6 @@ export interface InputEventOptions {
21604
21626
  }
21605
21627
 
21606
21628
  /**
21607
- * @rc
21608
21629
  * Contains additional filtering options for inventory item
21609
21630
  * events.
21610
21631
  */
@@ -21938,35 +21959,6 @@ export interface PlayerSoundOptions {
21938
21959
  volume?: number;
21939
21960
  }
21940
21961
 
21941
- /**
21942
- * @beta
21943
- * Options for use in creating potions. See
21944
- * ItemStack.createPotion.
21945
- */
21946
- export interface PotionOptions {
21947
- /**
21948
- * @remarks
21949
- * The type of potion effect to create. See
21950
- * @minecraft/vanilla-data.MinecraftPotionEffectTypes.
21951
- *
21952
- */
21953
- effect: PotionEffectType | string;
21954
- /**
21955
- * @remarks
21956
- * Optional potion liquid, defaults to 'Regular'. See
21957
- * @minecraft/vanilla-data.MinecraftPotionLiquidTypes.
21958
- *
21959
- */
21960
- liquid?: PotionLiquidType | string;
21961
- /**
21962
- * @remarks
21963
- * Optional potion modifier, defaults to 'Normal'. See
21964
- * @minecraft/vanilla-data.MinecraftPotionModifierTypes.
21965
- *
21966
- */
21967
- modifier?: PotionModifierType | string;
21968
- }
21969
-
21970
21962
  /**
21971
21963
  * Optional arguments for
21972
21964
  * @minecraft/server.EntityProjectileComponent.shoot.
@@ -22642,7 +22634,6 @@ export class ContainerRulesError extends Error {
22642
22634
  }
22643
22635
 
22644
22636
  /**
22645
- * @rc
22646
22637
  * Error object thrown when CustomCommandRegistry errors occur.
22647
22638
  */
22648
22639
  // @ts-ignore Class inheritance allowed for native defined classes
@@ -22695,7 +22686,6 @@ export class EntitySpawnError extends Error {
22695
22686
  }
22696
22687
 
22697
22688
  /**
22698
- * @rc
22699
22689
  * The container is invalid. This can occur if the container is
22700
22690
  * missing or deleted.
22701
22691
  */
@@ -22761,6 +22751,22 @@ export class InvalidIteratorError extends Error {
22761
22751
  private constructor();
22762
22752
  }
22763
22753
 
22754
+ /**
22755
+ * @beta
22756
+ */
22757
+ // @ts-ignore Class inheritance allowed for native defined classes
22758
+ export class InvalidPotionDeliveryTypeError extends Error {
22759
+ private constructor();
22760
+ }
22761
+
22762
+ /**
22763
+ * @beta
22764
+ */
22765
+ // @ts-ignore Class inheritance allowed for native defined classes
22766
+ export class InvalidPotionEffectTypeError extends Error {
22767
+ private constructor();
22768
+ }
22769
+
22764
22770
  /**
22765
22771
  * Thrown when a Structure is invalid. A structure becomes
22766
22772
  * invalid when it is deleted.
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "name": "@minecraft/server",
3
- "version": "2.3.0-beta.1.21.110-preview.20",
4
- "description": "",
5
- "contributors": [
6
- {
7
- "name": "Jake Shirley",
8
- "email": "jake@xbox.com"
9
- },
10
- {
11
- "name": "Mike Ammerlaan",
12
- "email": "mikeam@microsoft.com"
13
- }
14
- ],
15
- "peerDependencies": {
16
- "@minecraft/common": "^1.2.0",
17
- "@minecraft/vanilla-data": ">=1.20.70 || 1.21.110-preview.20"
18
- },
19
- "license": "MIT"
1
+ {
2
+ "name": "@minecraft/server",
3
+ "version": "2.3.0-beta.1.21.110-preview.23",
4
+ "description": "",
5
+ "contributors": [
6
+ {
7
+ "name": "Jake Shirley",
8
+ "email": "jake@xbox.com"
9
+ },
10
+ {
11
+ "name": "Mike Ammerlaan",
12
+ "email": "mikeam@microsoft.com"
13
+ }
14
+ ],
15
+ "peerDependencies": {
16
+ "@minecraft/common": "^1.2.0",
17
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.21.110-preview.23"
18
+ },
19
+ "license": "MIT"
20
20
  }