@minecraft/server 1.1.0-rc.1.20.0-preview.21 → 1.1.0-rc.1.20.0-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 +17 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * ```json
17
17
  * {
18
18
  * "module_name": "@minecraft/server",
19
- * "version": "1.3.0-internal.1.20.0-preview.21"
19
+ * "version": "1.3.0-internal.1.20.0-preview.22"
20
20
  * }
21
21
  * ```
22
22
  *
@@ -60,6 +60,7 @@ export enum GameMode {
60
60
  */
61
61
  survival = 'survival',
62
62
  }
63
+
63
64
  /**
64
65
  * @beta
65
66
  * Represents a block in a dimension. A block represents a
@@ -122,6 +123,7 @@ export class Block {
122
123
  */
123
124
  setPermutation(permutation: BlockPermutation): void;
124
125
  }
126
+
125
127
  /**
126
128
  * @beta
127
129
  * Contains the combination of type {@link BlockType} and
@@ -153,6 +155,7 @@ export class BlockPermutation {
153
155
  */
154
156
  static resolve(blockName: string, states?: Record<string, boolean | number | string>): BlockPermutation;
155
157
  }
158
+
156
159
  /**
157
160
  * Contains return data on the result of a command execution.
158
161
  */
@@ -167,6 +170,7 @@ export class CommandResult {
167
170
  */
168
171
  readonly successCount: number;
169
172
  }
173
+
170
174
  /**
171
175
  * A class that represents a particular dimension (e.g., The
172
176
  * End) within a world.
@@ -192,7 +196,7 @@ export class Dimension {
192
196
  * Block at the specified location.
193
197
  * @throws This function can throw errors.
194
198
  */
195
- getBlock(location: Vector3): Block;
199
+ getBlock(location: Vector3): Block | undefined;
196
200
  /**
197
201
  * @beta
198
202
  * @remarks
@@ -268,6 +272,7 @@ export class Dimension {
268
272
  */
269
273
  runCommandAsync(commandString: string): Promise<CommandResult>;
270
274
  }
275
+
271
276
  /**
272
277
  * Represents the state of an entity (a mob, the player, or
273
278
  * other moving objects like minecarts) in the world.
@@ -358,6 +363,7 @@ export class Entity {
358
363
  */
359
364
  runCommandAsync(commandString: string): Promise<CommandResult>;
360
365
  }
366
+
361
367
  /**
362
368
  * A collection of default Minecraft dimension types.
363
369
  */
@@ -397,6 +403,7 @@ export class MinecraftDimensionTypes {
397
403
  */
398
404
  static readonly theEnd = 'minecraft:the_end';
399
405
  }
406
+
400
407
  /**
401
408
  * Represents a player within the world.
402
409
  */
@@ -453,6 +460,7 @@ export class Player extends Entity {
453
460
  */
454
461
  sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
455
462
  }
463
+
456
464
  /**
457
465
  * A class that provides system-level events and functions.
458
466
  */
@@ -518,6 +526,7 @@ export class System {
518
526
  */
519
527
  runTimeout(callback: () => void, tickDelay?: number): number;
520
528
  }
529
+
521
530
  /**
522
531
  * A class that wraps the state of a world - a set of
523
532
  * dimensions and the environment of Minecraft.
@@ -599,6 +608,7 @@ export class World {
599
608
  */
600
609
  sendMessage(message: (RawMessage | string)[] | RawMessage | string): void;
601
610
  }
611
+
602
612
  /**
603
613
  * @beta
604
614
  * Contains options for selecting entities within an area.
@@ -761,6 +771,7 @@ export interface EntityQueryOptions {
761
771
  */
762
772
  type?: string;
763
773
  }
774
+
764
775
  /**
765
776
  * @beta
766
777
  * Contains additional options for filtering players based on
@@ -795,6 +806,7 @@ export interface EntityQueryScoreOptions {
795
806
  */
796
807
  objective?: string;
797
808
  }
809
+
798
810
  /**
799
811
  * @beta
800
812
  */
@@ -805,6 +817,7 @@ export interface RawMessage {
805
817
  translate?: string;
806
818
  with?: string[] | RawMessage;
807
819
  }
820
+
808
821
  /**
809
822
  * @beta
810
823
  */
@@ -812,6 +825,7 @@ export interface RawMessageScore {
812
825
  name?: string;
813
826
  objective?: string;
814
827
  }
828
+
815
829
  /**
816
830
  * @beta
817
831
  * Contains a description of a vector.
@@ -836,6 +850,7 @@ export interface Vector3 {
836
850
  */
837
851
  z: number;
838
852
  }
853
+
839
854
  /**
840
855
  * @remarks
841
856
  * A class that provides system-level events and functions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/server",
3
- "version": "1.1.0-rc.1.20.0-preview.21",
3
+ "version": "1.1.0-rc.1.20.0-preview.22",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {