@minecraft/server 1.8.0-rc.1.20.60-preview.21 → 1.8.0-rc.1.20.60-preview.22

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 +49 -45
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  * ```json
16
16
  * {
17
17
  * "module_name": "@minecraft/server",
18
- * "version": "1.6.0"
18
+ * "version": "1.7.0"
19
19
  * }
20
20
  * ```
21
21
  *
@@ -421,6 +421,42 @@ export enum EquipmentSlot {
421
421
  Offhand = 'Offhand',
422
422
  }
423
423
 
424
+ /**
425
+ * @beta
426
+ * Represents the type of fluid for use within a fluid
427
+ * containing block, like a cauldron.
428
+ */
429
+ export enum FluidType {
430
+ /**
431
+ * @beta
432
+ * @remarks
433
+ * Represents lava as a type of fluid.
434
+ *
435
+ */
436
+ Lava = 'Lava',
437
+ /**
438
+ * @beta
439
+ * @remarks
440
+ * Represents a potion as a type of fluid.
441
+ *
442
+ */
443
+ Potion = 'Potion',
444
+ /**
445
+ * @beta
446
+ * @remarks
447
+ * Represents powder snow as a type of fluid.
448
+ *
449
+ */
450
+ PowderSnow = 'PowderSnow',
451
+ /**
452
+ * @beta
453
+ * @remarks
454
+ * Represents water as a type of fluida.
455
+ *
456
+ */
457
+ Water = 'Water',
458
+ }
459
+
424
460
  /**
425
461
  * Represents a game mode for the current world experience.
426
462
  */
@@ -788,7 +824,6 @@ export class Block {
788
824
  */
789
825
  readonly z: number;
790
826
  /**
791
- * @beta
792
827
  * @remarks
793
828
  * Returns the {@link Block} above this block (positive in the
794
829
  * Y direction).
@@ -803,7 +838,6 @@ export class Block {
803
838
  */
804
839
  above(steps?: number): Block | undefined;
805
840
  /**
806
- * @beta
807
841
  * @remarks
808
842
  * Returns the {@link Block} below this block (negative in the
809
843
  * Y direction).
@@ -818,7 +852,6 @@ export class Block {
818
852
  */
819
853
  below(steps?: number): Block | undefined;
820
854
  /**
821
- * @beta
822
855
  * @remarks
823
856
  * Returns the {@link @minecraft/server.Location} of the center
824
857
  * of this block on the X and Z axis.
@@ -826,7 +859,6 @@ export class Block {
826
859
  */
827
860
  bottomCenter(): Vector3;
828
861
  /**
829
- * @beta
830
862
  * @remarks
831
863
  * Returns the {@link @minecraft/server.Location} of the center
832
864
  * of this block on the X, Y, and Z axis.
@@ -834,7 +866,6 @@ export class Block {
834
866
  */
835
867
  center(): Vector3;
836
868
  /**
837
- * @beta
838
869
  * @remarks
839
870
  * Returns the {@link Block} to the east of this block
840
871
  * (positive in the X direction).
@@ -923,7 +954,6 @@ export class Block {
923
954
  */
924
955
  isValid(): boolean;
925
956
  /**
926
- * @beta
927
957
  * @remarks
928
958
  * Returns the {@link Block} to the north of this block
929
959
  * (negative in the Z direction).
@@ -938,7 +968,6 @@ export class Block {
938
968
  */
939
969
  north(steps?: number): Block | undefined;
940
970
  /**
941
- * @beta
942
971
  * @remarks
943
972
  * Returns a block at an offset relative vector to this block.
944
973
  *
@@ -974,7 +1003,6 @@ export class Block {
974
1003
  */
975
1004
  setPermutation(permutation: BlockPermutation): void;
976
1005
  /**
977
- * @beta
978
1006
  * @remarks
979
1007
  * Returns the {@link Block} to the south of this block
980
1008
  * (positive in the Z direction).
@@ -989,7 +1017,6 @@ export class Block {
989
1017
  */
990
1018
  south(steps?: number): Block | undefined;
991
1019
  /**
992
- * @beta
993
1020
  * @remarks
994
1021
  * Returns the {@link Block} to the west of this block
995
1022
  * (negative in the X direction).
@@ -1128,6 +1155,17 @@ export class BlockPermutation {
1128
1155
  static resolve(blockName: string, states?: Record<string, boolean | number | string>): BlockPermutation;
1129
1156
  }
1130
1157
 
1158
+ /**
1159
+ * @beta
1160
+ * The type (or template) of a block. Does not contain
1161
+ * permutation data (state) other than the type of block it
1162
+ * represents. This type was introduced as of version
1163
+ * 1.17.10.21.
1164
+ */
1165
+ export class BlockType {
1166
+ private constructor();
1167
+ }
1168
+
1131
1169
  /**
1132
1170
  * Contains information related to changes to a button push.
1133
1171
  */
@@ -1488,7 +1526,6 @@ export class DataDrivenEntityTriggerAfterEventSignal {
1488
1526
  export class Dimension {
1489
1527
  private constructor();
1490
1528
  /**
1491
- * @beta
1492
1529
  * @remarks
1493
1530
  * Height range of the dimension.
1494
1531
  *
@@ -2317,7 +2354,6 @@ export class Entity {
2317
2354
  */
2318
2355
  applyKnockback(directionX: number, directionZ: number, horizontalStrength: number, verticalStrength: number): void;
2319
2356
  /**
2320
- * @beta
2321
2357
  * @remarks
2322
2358
  * Clears all dynamic properties that have been set on this
2323
2359
  * entity.
@@ -2383,7 +2419,6 @@ export class Entity {
2383
2419
  */
2384
2420
  getComponents(): EntityComponent[];
2385
2421
  /**
2386
- * @beta
2387
2422
  * @remarks
2388
2423
  * Returns a property value.
2389
2424
  *
@@ -2396,7 +2431,6 @@ export class Entity {
2396
2431
  */
2397
2432
  getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined;
2398
2433
  /**
2399
- * @beta
2400
2434
  * @remarks
2401
2435
  * Returns the available set of dynamic property identifiers
2402
2436
  * that have been used on this entity.
@@ -2407,7 +2441,6 @@ export class Entity {
2407
2441
  */
2408
2442
  getDynamicPropertyIds(): string[];
2409
2443
  /**
2410
- * @beta
2411
2444
  * @remarks
2412
2445
  * Returns the total size, in bytes, of all the dynamic
2413
2446
  * properties that are currently stored for this entity. This
@@ -2596,7 +2629,6 @@ export class Entity {
2596
2629
  */
2597
2630
  kill(): boolean;
2598
2631
  /**
2599
- * @beta
2600
2632
  * @remarks
2601
2633
  * Matches the entity against the passed in options. Uses the
2602
2634
  * location of the entity for matching if the location is not
@@ -2609,7 +2641,6 @@ export class Entity {
2609
2641
  */
2610
2642
  matches(options: EntityQueryOptions): boolean;
2611
2643
  /**
2612
- * @beta
2613
2644
  * @remarks
2614
2645
  * Immediately removes the entity from the world. The removed
2615
2646
  * entity will not perform a death animation or drop loot upon
@@ -2706,7 +2737,6 @@ export class Entity {
2706
2737
  */
2707
2738
  runCommandAsync(commandString: string): Promise<CommandResult>;
2708
2739
  /**
2709
- * @beta
2710
2740
  * @remarks
2711
2741
  * Sets a specified property to a value.
2712
2742
  *
@@ -4002,7 +4032,6 @@ export class EntityWantsJockeyComponent extends EntityComponent {
4002
4032
  }
4003
4033
 
4004
4034
  /**
4005
- * @beta
4006
4035
  * Contains information regarding an explosion that has
4007
4036
  * happened.
4008
4037
  */
@@ -4029,7 +4058,6 @@ export class ExplosionAfterEvent {
4029
4058
  }
4030
4059
 
4031
4060
  /**
4032
- * @beta
4033
4061
  * Manages callbacks that are connected to when an explosion
4034
4062
  * occurs.
4035
4063
  */
@@ -4057,7 +4085,6 @@ export class ExplosionAfterEventSignal {
4057
4085
  }
4058
4086
 
4059
4087
  /**
4060
- * @beta
4061
4088
  * Contains information regarding an explosion that has
4062
4089
  * happened.
4063
4090
  */
@@ -4082,7 +4109,6 @@ export class ExplosionBeforeEvent extends ExplosionAfterEvent {
4082
4109
  }
4083
4110
 
4084
4111
  /**
4085
- * @beta
4086
4112
  * Manages callbacks that are connected to before an explosion
4087
4113
  * occurs.
4088
4114
  */
@@ -5713,7 +5739,6 @@ export class PlayerDimensionChangeAfterEventSignal {
5713
5739
  }
5714
5740
 
5715
5741
  /**
5716
- * @beta
5717
5742
  * Contains information regarding an event after a player
5718
5743
  * interacts with a block.
5719
5744
  */
@@ -5754,7 +5779,6 @@ export class PlayerInteractWithBlockAfterEvent {
5754
5779
  }
5755
5780
 
5756
5781
  /**
5757
- * @beta
5758
5782
  * Manages callbacks that are connected to after a player
5759
5783
  * interacts with a block.
5760
5784
  */
@@ -5784,7 +5808,6 @@ export class PlayerInteractWithBlockAfterEventSignal {
5784
5808
  }
5785
5809
 
5786
5810
  /**
5787
- * @beta
5788
5811
  * Contains information regarding an event before a player
5789
5812
  * interacts with a block.
5790
5813
  */
@@ -5831,7 +5854,6 @@ export class PlayerInteractWithBlockBeforeEvent {
5831
5854
  }
5832
5855
 
5833
5856
  /**
5834
- * @beta
5835
5857
  * Manages callbacks that are connected to before a player
5836
5858
  * interacts with a block.
5837
5859
  */
@@ -5861,7 +5883,6 @@ export class PlayerInteractWithBlockBeforeEventSignal {
5861
5883
  }
5862
5884
 
5863
5885
  /**
5864
- * @beta
5865
5886
  * Contains information regarding an event after a player
5866
5887
  * interacts with an entity.
5867
5888
  */
@@ -5889,7 +5910,6 @@ export class PlayerInteractWithEntityAfterEvent {
5889
5910
  }
5890
5911
 
5891
5912
  /**
5892
- * @beta
5893
5913
  * Manages callbacks that are connected to after a player
5894
5914
  * interacts with an entity.
5895
5915
  */
@@ -5919,7 +5939,6 @@ export class PlayerInteractWithEntityAfterEventSignal {
5919
5939
  }
5920
5940
 
5921
5941
  /**
5922
- * @beta
5923
5942
  * Contains information regarding an event before a player
5924
5943
  * interacts with an entity.
5925
5944
  */
@@ -5953,7 +5972,6 @@ export class PlayerInteractWithEntityBeforeEvent {
5953
5972
  }
5954
5973
 
5955
5974
  /**
5956
- * @beta
5957
5975
  * Manages callbacks that are connected to before a player
5958
5976
  * interacts with an entity.
5959
5977
  */
@@ -6043,17 +6061,11 @@ export class PlayerLeaveAfterEventSignal extends IPlayerLeaveAfterEventSignal {
6043
6061
  private constructor();
6044
6062
  }
6045
6063
 
6046
- /**
6047
- * @beta
6048
- */
6049
6064
  export class PlayerLeaveBeforeEvent {
6050
6065
  private constructor();
6051
6066
  readonly player: Player;
6052
6067
  }
6053
6068
 
6054
- /**
6055
- * @beta
6056
- */
6057
6069
  export class PlayerLeaveBeforeEventSignal {
6058
6070
  private constructor();
6059
6071
  /**
@@ -6417,7 +6429,7 @@ export class Scoreboard {
6417
6429
  *
6418
6430
  * @throws This function can throw errors.
6419
6431
  */
6420
- addObjective(objectiveId: string, displayName: string): ScoreboardObjective;
6432
+ addObjective(objectiveId: string, displayName?: string): ScoreboardObjective;
6421
6433
  /**
6422
6434
  * @remarks
6423
6435
  * Clears the objective that occupies a display slot.
@@ -7047,7 +7059,6 @@ export class World {
7047
7059
  */
7048
7060
  readonly scoreboard: Scoreboard;
7049
7061
  /**
7050
- * @beta
7051
7062
  * @remarks
7052
7063
  * Clears the set of dynamic properties declared for this
7053
7064
  * behavior pack within the world.
@@ -7100,7 +7111,6 @@ export class World {
7100
7111
  */
7101
7112
  getDimension(dimensionId: string): Dimension;
7102
7113
  /**
7103
- * @beta
7104
7114
  * @remarks
7105
7115
  * Returns a property value.
7106
7116
  *
@@ -7167,7 +7177,6 @@ export class World {
7167
7177
  */
7168
7178
  getDynamicProperty(identifier: string): boolean | number | string | Vector3 | undefined;
7169
7179
  /**
7170
- * @beta
7171
7180
  * @remarks
7172
7181
  * Gets a set of dynamic property identifiers that have been
7173
7182
  * set in this world.
@@ -7177,7 +7186,6 @@ export class World {
7177
7186
  */
7178
7187
  getDynamicPropertyIds(): string[];
7179
7188
  /**
7180
- * @beta
7181
7189
  * @remarks
7182
7190
  * Gets the total byte count of dynamic properties. This could
7183
7191
  * potentially be used for your own analytics to ensure you're
@@ -7186,7 +7194,6 @@ export class World {
7186
7194
  */
7187
7195
  getDynamicPropertyTotalByteCount(): number;
7188
7196
  /**
7189
- * @beta
7190
7197
  * @remarks
7191
7198
  * Returns an entity based on the provided id.
7192
7199
  *
@@ -7379,7 +7386,6 @@ export class World {
7379
7386
  */
7380
7387
  setDefaultSpawnLocation(spawnLocation: Vector3): void;
7381
7388
  /**
7382
- * @beta
7383
7389
  * @remarks
7384
7390
  * Sets a specified property to a value.
7385
7391
  *
@@ -7719,7 +7725,6 @@ export class WorldBeforeEvents {
7719
7725
  */
7720
7726
  readonly playerBreakBlock: PlayerBreakBlockBeforeEventSignal;
7721
7727
  /**
7722
- * @beta
7723
7728
  * @remarks
7724
7729
  * Fires when a player leaves the game.
7725
7730
  *
@@ -8683,7 +8688,6 @@ export class LocationOutOfWorldBoundariesError extends Error {
8683
8688
  */
8684
8689
  export const MoonPhaseCount = 8;
8685
8690
  /**
8686
- * @beta
8687
8691
  * @remarks
8688
8692
  * How many times the server ticks per second of real time.
8689
8693
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "1.8.0-rc.1.20.60-preview.21",
3
+ "version": "1.8.0-rc.1.20.60-preview.22",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/common": "^1.1.0-rc.1.20.60-preview.21"
16
+ "@minecraft/common": "^1.1.0"
17
17
  },
18
18
  "license": "MIT"
19
19
  }