@minecraft/server 2.6.0-beta.1.26.0-preview.29 → 2.7.0-beta.1.26.10-preview.20

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 +55 -30
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * ```json
17
17
  * {
18
18
  * "module_name": "@minecraft/server",
19
- * "version": "2.6.0-beta"
19
+ * "version": "2.7.0-beta"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -1480,7 +1480,7 @@ export enum EntityDamageCause {
1480
1480
  }
1481
1481
 
1482
1482
  /**
1483
- * @beta
1483
+ * @rc
1484
1484
  * Describes the source of healing of an Entity.
1485
1485
  */
1486
1486
  export enum EntityHealCause {
@@ -4144,7 +4144,7 @@ export class Block {
4144
4144
  */
4145
4145
  getComponent<T extends string>(componentId: T): BlockComponentReturnType<T> | undefined;
4146
4146
  /**
4147
- * @beta
4147
+ * @rc
4148
4148
  * @remarks
4149
4149
  * Returns all scripting components that are present on this
4150
4150
  * block.
@@ -4165,6 +4165,7 @@ export class Block {
4165
4165
  * Number of instances of this block to place in the item
4166
4166
  * stack.
4167
4167
  * Defaults to: 1
4168
+ * Bounds: [1, 255]
4168
4169
  * @param withData
4169
4170
  * Whether additional data facets of the item stack are
4170
4171
  * included.
@@ -4248,7 +4249,7 @@ export class Block {
4248
4249
  */
4249
4250
  getTags(): string[];
4250
4251
  /**
4251
- * @beta
4252
+ * @rc
4252
4253
  * @remarks
4253
4254
  * Returns true if the specified component is present on this
4254
4255
  * block.
@@ -5259,7 +5260,7 @@ export class BlockMovableComponent extends BlockComponent {
5259
5260
  export class BlockPermutation {
5260
5261
  private constructor();
5261
5262
  /**
5262
- * @beta
5263
+ * @rc
5263
5264
  * @remarks
5264
5265
  * Key for the localization of this BlockPermutation's name
5265
5266
  * used in .lang files.
@@ -5316,6 +5317,7 @@ export class BlockPermutation {
5316
5317
  * Number of instances of this block to place in the prototype
5317
5318
  * item stack.
5318
5319
  * Defaults to: 1
5320
+ * Bounds: [1, 255]
5319
5321
  */
5320
5322
  getItemStack(amount?: number): ItemStack | undefined;
5321
5323
  /**
@@ -5928,7 +5930,7 @@ export class BlockType {
5928
5930
  */
5929
5931
  readonly id: string;
5930
5932
  /**
5931
- * @beta
5933
+ * @rc
5932
5934
  * @remarks
5933
5935
  * Key for the localization of this BlockType's name used in
5934
5936
  * .lang files.
@@ -7042,6 +7044,7 @@ export class Container {
7042
7044
  *
7043
7045
  * @param slot
7044
7046
  * Zero-based index of the slot to retrieve items from.
7047
+ * Minimum value: 0
7045
7048
  * @throws
7046
7049
  * Throws if the container is invalid or if the `slot` index is
7047
7050
  * out of bounds.
@@ -7075,6 +7078,7 @@ export class Container {
7075
7078
  * @param slot
7076
7079
  * The index of the slot to return. This index must be within
7077
7080
  * the bounds of the container.
7081
+ * Minimum value: 0
7078
7082
  * @throws
7079
7083
  * Throws if the container is invalid or if the `slot` index is
7080
7084
  * out of bounds.
@@ -7090,9 +7094,11 @@ export class Container {
7090
7094
  * @param fromSlot
7091
7095
  * Zero-based index of the slot to transfer an item from, on
7092
7096
  * this container.
7097
+ * Minimum value: 0
7093
7098
  * @param toSlot
7094
7099
  * Zero-based index of the slot to transfer an item to, on
7095
7100
  * `toContainer`.
7101
+ * Minimum value: 0
7096
7102
  * @param toContainer
7097
7103
  * Target container to transfer to. Note this can be the same
7098
7104
  * container as the source.
@@ -7141,6 +7147,7 @@ export class Container {
7141
7147
  *
7142
7148
  * @param slot
7143
7149
  * Zero-based index of the slot to set an item at.
7150
+ * Minimum value: 0
7144
7151
  * @param itemStack
7145
7152
  * Stack of items to place within the specified slot. Setting
7146
7153
  * `itemStack` to undefined will clear the slot.
@@ -7161,8 +7168,10 @@ export class Container {
7161
7168
  *
7162
7169
  * @param slot
7163
7170
  * Zero-based index of the slot to swap from this container.
7171
+ * Minimum value: 0
7164
7172
  * @param otherSlot
7165
7173
  * Zero-based index of the slot to swap with.
7174
+ * Minimum value: 0
7166
7175
  * @param otherContainer
7167
7176
  * Target container to swap with. Note this can be the same
7168
7177
  * container as this source.
@@ -7185,6 +7194,7 @@ export class Container {
7185
7194
  * @param fromSlot
7186
7195
  * Zero-based index of the slot to transfer an item from, on
7187
7196
  * this container.
7197
+ * Minimum value: 0
7188
7198
  * @param toContainer
7189
7199
  * Target container to transfer to. Note this can be the same
7190
7200
  * container as the source.
@@ -7246,6 +7256,7 @@ export class ContainerSlot {
7246
7256
  *
7247
7257
  * This property can't be edited in restricted-execution mode.
7248
7258
  *
7259
+ * Bounds: [1, 255]
7249
7260
  * @throws
7250
7261
  * Throws if the value is outside the range of 1-255.
7251
7262
  */
@@ -7899,6 +7910,7 @@ export class Dimension {
7899
7910
  * The location of the explosion.
7900
7911
  * @param radius
7901
7912
  * Radius, in blocks, of the explosion to create.
7913
+ * Bounds: [0, 1000]
7902
7914
  * @param explosionOptions
7903
7915
  * Additional configurable options for the explosion.
7904
7916
  * @throws This function can throw errors.
@@ -8473,6 +8485,7 @@ export class Dimension {
8473
8485
  * Sets the duration of the weather (in ticks). If no duration
8474
8486
  * is provided, the duration will be set to a random duration
8475
8487
  * between 300 and 900 seconds.
8488
+ * Bounds: [1, 1000000]
8476
8489
  * @throws This function can throw errors.
8477
8490
  */
8478
8491
  setWeather(weatherType: WeatherType, duration?: number): void;
@@ -9231,6 +9244,7 @@ export class Entity {
9231
9244
  * 20 ticks per second. Use {@link TicksPerSecond} constant to
9232
9245
  * convert between ticks and seconds. The value must be within
9233
9246
  * the range [0, 20000000].
9247
+ * Bounds: [1, 20000000]
9234
9248
  * @param options
9235
9249
  * Additional options for the effect.
9236
9250
  * @returns
@@ -10908,7 +10922,7 @@ export class EntityHealableComponent extends EntityComponent {
10908
10922
  }
10909
10923
 
10910
10924
  /**
10911
- * @beta
10925
+ * @rc
10912
10926
  * Contains information related to an entity having been
10913
10927
  * healed.
10914
10928
  */
@@ -10935,7 +10949,7 @@ export class EntityHealAfterEvent {
10935
10949
  }
10936
10950
 
10937
10951
  /**
10938
- * @beta
10952
+ * @rc
10939
10953
  * Manages callbacks that are connected to when an entity is
10940
10954
  * healed.
10941
10955
  */
@@ -10969,7 +10983,7 @@ export class EntityHealAfterEventSignal {
10969
10983
  }
10970
10984
 
10971
10985
  /**
10972
- * @beta
10986
+ * @rc
10973
10987
  * Contains information related to an entity that will be
10974
10988
  * healed.
10975
10989
  */
@@ -10997,7 +11011,7 @@ export class EntityHealBeforeEvent {
10997
11011
  }
10998
11012
 
10999
11013
  /**
11000
- * @beta
11014
+ * @rc
11001
11015
  * Manages callbacks that are connected to when an entity will
11002
11016
  * be healed.
11003
11017
  */
@@ -11037,7 +11051,7 @@ export class EntityHealBeforeEventSignal {
11037
11051
  }
11038
11052
 
11039
11053
  /**
11040
- * @beta
11054
+ * @rc
11041
11055
  * Provides information about how healing has been applied to
11042
11056
  * an entity.
11043
11057
  */
@@ -11295,6 +11309,7 @@ export class EntityHurtAfterEvent {
11295
11309
  }
11296
11310
 
11297
11311
  /**
11312
+ * @rc
11298
11313
  * Manages callbacks that are connected to when an entity is
11299
11314
  * hurt.
11300
11315
  */
@@ -11326,7 +11341,7 @@ export class EntityHurtAfterEventSignal {
11326
11341
  }
11327
11342
 
11328
11343
  /**
11329
- * @beta
11344
+ * @rc
11330
11345
  * Contains information related to an entity that will be hurt.
11331
11346
  */
11332
11347
  export class EntityHurtBeforeEvent {
@@ -11354,7 +11369,7 @@ export class EntityHurtBeforeEvent {
11354
11369
  }
11355
11370
 
11356
11371
  /**
11357
- * @beta
11372
+ * @rc
11358
11373
  * Manages callbacks that are connected to when an entity will
11359
11374
  * be hurt.
11360
11375
  */
@@ -11686,7 +11701,7 @@ export class EntityItemDropAfterEventSignal {
11686
11701
  }
11687
11702
 
11688
11703
  /**
11689
- * @beta
11704
+ * @rc
11690
11705
  * Contains information related to an entity having picked up
11691
11706
  * items.
11692
11707
  */
@@ -11707,7 +11722,7 @@ export class EntityItemPickupAfterEvent {
11707
11722
  }
11708
11723
 
11709
11724
  /**
11710
- * @beta
11725
+ * @rc
11711
11726
  * Manages callbacks that are connected to when an entity has
11712
11727
  * picked up items.
11713
11728
  */
@@ -11741,7 +11756,7 @@ export class EntityItemPickupAfterEventSignal {
11741
11756
  }
11742
11757
 
11743
11758
  /**
11744
- * @beta
11759
+ * @rc
11745
11760
  * Contains information related to an entity picking up an
11746
11761
  * item.
11747
11762
  */
@@ -11768,7 +11783,7 @@ export class EntityItemPickupBeforeEvent {
11768
11783
  }
11769
11784
 
11770
11785
  /**
11771
- * @beta
11786
+ * @rc
11772
11787
  * Manages callbacks that are connected to when an entity will
11773
11788
  * pick up an item.
11774
11789
  */
@@ -13208,7 +13223,7 @@ export class EntityType {
13208
13223
  */
13209
13224
  readonly id: string;
13210
13225
  /**
13211
- * @beta
13226
+ * @rc
13212
13227
  * @remarks
13213
13228
  * Key for the localization of this EntityType's name used in
13214
13229
  * .lang files.
@@ -14535,6 +14550,7 @@ export class ItemDurabilityComponent extends ItemComponent {
14535
14550
  * chance. Incoming unbreaking parameter must be within the
14536
14551
  * range [0, 3].
14537
14552
  * Defaults to: 0
14553
+ * Bounds: [0, 3]
14538
14554
  * @throws This function can throw errors.
14539
14555
  */
14540
14556
  getDamageChance(unbreakingEnchantmentLevel?: number): number;
@@ -14973,6 +14989,7 @@ export class ItemStack {
14973
14989
  *
14974
14990
  * This property can't be edited in restricted-execution mode.
14975
14991
  *
14992
+ * Bounds: [1, 255]
14976
14993
  * @throws
14977
14994
  * Throws if the value is outside the range of 1-255.
14978
14995
  */
@@ -15070,6 +15087,7 @@ export class ItemStack {
15070
15087
  * size. Note that certain items can only have one item in the
15071
15088
  * stack.
15072
15089
  * Defaults to: 1
15090
+ * Bounds: [1, 255]
15073
15091
  * @throws
15074
15092
  * Throws if `itemType` is invalid, or if `amount` is outside
15075
15093
  * the range of 1-255.
@@ -15673,7 +15691,7 @@ export class ItemType {
15673
15691
  */
15674
15692
  readonly id: string;
15675
15693
  /**
15676
- * @beta
15694
+ * @rc
15677
15695
  * @remarks
15678
15696
  * Key for the localization of this ItemType's name used in
15679
15697
  * .lang files.
@@ -16826,6 +16844,7 @@ export class Player extends Entity {
16826
16844
  * @param amount
16827
16845
  * Amount of experience to add. Note that this can be negative.
16828
16846
  * Min/max bounds at -2^24 ~ 2^24
16847
+ * Bounds: [-16777216, 16777216]
16829
16848
  * @returns
16830
16849
  * Returns the current experience of the Player.
16831
16850
  * @throws This function can throw errors.
@@ -16840,6 +16859,7 @@ export class Player extends Entity {
16840
16859
  *
16841
16860
  * @param amount
16842
16861
  * Amount to add to the player. Min/max bounds at -2^24 ~ 2^24
16862
+ * Bounds: [-16777216, 16777216]
16843
16863
  * @returns
16844
16864
  * Returns the current level of the Player.
16845
16865
  * @throws This function can throw errors.
@@ -17259,6 +17279,7 @@ export class Player extends Entity {
17259
17279
  * cooldown for.
17260
17280
  * @param tickDuration
17261
17281
  * Duration in ticks of the item cooldown.
17282
+ * Bounds: [0, 32767]
17262
17283
  * @throws This function can throw errors.
17263
17284
  */
17264
17285
  startItemCooldown(cooldownCategory: string, tickDuration: number): void;
@@ -20669,6 +20690,7 @@ export class StructureManager {
20669
20690
  * templates.
20670
20691
  * @param maxDepth
20671
20692
  * The maximum recursion depth for the jigsaw structure.
20693
+ * Bounds: [1, 20]
20672
20694
  * @param dimension
20673
20695
  * The dimension to place the jigsaw structure in.
20674
20696
  * @param location
@@ -21589,7 +21611,7 @@ export class World {
21589
21611
  */
21590
21612
  readonly scoreboard: Scoreboard;
21591
21613
  /**
21592
- * @beta
21614
+ * @rc
21593
21615
  * @remarks
21594
21616
  * The world seed.
21595
21617
  *
@@ -22142,7 +22164,7 @@ export class WorldAfterEvents {
22142
22164
  */
22143
22165
  readonly entityDie: EntityDieAfterEventSignal;
22144
22166
  /**
22145
- * @beta
22167
+ * @rc
22146
22168
  * @remarks
22147
22169
  * This property can be read in early-execution mode.
22148
22170
  *
@@ -22175,6 +22197,7 @@ export class WorldAfterEvents {
22175
22197
  */
22176
22198
  readonly entityHitEntity: EntityHitEntityAfterEventSignal;
22177
22199
  /**
22200
+ * @rc
22178
22201
  * @remarks
22179
22202
  * This event fires when an entity is hurt (takes damage).
22180
22203
  *
@@ -22192,7 +22215,7 @@ export class WorldAfterEvents {
22192
22215
  */
22193
22216
  readonly entityItemDrop: EntityItemDropAfterEventSignal;
22194
22217
  /**
22195
- * @beta
22218
+ * @rc
22196
22219
  * @remarks
22197
22220
  * This event fires when an entity picks up items.
22198
22221
  *
@@ -22603,21 +22626,21 @@ export class WorldBeforeEvents {
22603
22626
  */
22604
22627
  readonly effectAdd: EffectAddBeforeEventSignal;
22605
22628
  /**
22606
- * @beta
22629
+ * @rc
22607
22630
  * @remarks
22608
22631
  * This property can be read in early-execution mode.
22609
22632
  *
22610
22633
  */
22611
22634
  readonly entityHeal: EntityHealBeforeEventSignal;
22612
22635
  /**
22613
- * @beta
22636
+ * @rc
22614
22637
  * @remarks
22615
22638
  * This property can be read in early-execution mode.
22616
22639
  *
22617
22640
  */
22618
22641
  readonly entityHurt: EntityHurtBeforeEventSignal;
22619
22642
  /**
22620
- * @beta
22643
+ * @rc
22621
22644
  * @remarks
22622
22645
  * This event fires before an entity picks up an item.
22623
22646
  *
@@ -23739,7 +23762,7 @@ export interface EntityFilter {
23739
23762
  }
23740
23763
 
23741
23764
  /**
23742
- * @beta
23765
+ * @rc
23743
23766
  * Contains optional parameters for registering an entity heal
23744
23767
  * event.
23745
23768
  */
@@ -23774,7 +23797,7 @@ export interface EntityHitInformation {
23774
23797
  }
23775
23798
 
23776
23799
  /**
23777
- * @beta
23800
+ * @rc
23778
23801
  * Contains optional parameters for registering an entity hurt
23779
23802
  * after event.
23780
23803
  */
@@ -23810,7 +23833,7 @@ export interface EntityHurtAfterEventOptions {
23810
23833
  }
23811
23834
 
23812
23835
  /**
23813
- * @beta
23836
+ * @rc
23814
23837
  * Contains optional parameters for registering an entity hurt
23815
23838
  * before event.
23816
23839
  */
@@ -23856,7 +23879,7 @@ export interface EntityItemDropEventOptions {
23856
23879
  }
23857
23880
 
23858
23881
  /**
23859
- * @beta
23882
+ * @rc
23860
23883
  * An interface that is passed into {@link
23861
23884
  * @minecraft/Server.EntityItemPickupAfterEventSignal.subscribe}
23862
23885
  * and {@link
@@ -24339,6 +24362,7 @@ export interface HotbarEventOptions {
24339
24362
  * The slot indexes to consider. Values should be between 0 and
24340
24363
  * 8, inclusive. If not specified, all slots are considered.
24341
24364
  *
24365
+ * Bounds: [0, 8]
24342
24366
  */
24343
24367
  allowedSlots?: number[];
24344
24368
  }
@@ -24376,6 +24400,7 @@ export interface InventoryItemEventOptions {
24376
24400
  * The slot indexes to consider. Values should be positive
24377
24401
  * numbers. If not specified, all slots are considered.
24378
24402
  *
24403
+ * Bounds: [0, 1000]
24379
24404
  */
24380
24405
  allowedSlots?: number[];
24381
24406
  /**
@@ -24479,7 +24504,7 @@ export interface ItemCustomComponent {
24479
24504
  }
24480
24505
 
24481
24506
  /**
24482
- * @beta
24507
+ * @rc
24483
24508
  * Contains options for filtering items.
24484
24509
  */
24485
24510
  export interface ItemFilter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "2.6.0-beta.1.26.0-preview.29",
3
+ "version": "2.7.0-beta.1.26.10-preview.20",
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 || 1.26.0-preview.29"
17
+ "@minecraft/vanilla-data": ">=1.20.70 || 1.26.10-preview.20"
18
18
  },
19
19
  "license": "MIT"
20
20
  }