@minecraft/debug-utilities 1.0.0-beta.1.26.2-stable → 1.0.0-beta.1.26.20-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 (3) hide show
  1. package/README.md +8 -8
  2. package/index.d.ts +40 -6
  3. package/package.json +19 -19
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # `@minecraft/debug-utilities`
2
-
3
- Contains debug utility functions.
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/debug-utilities`
2
+
3
+ Contains debug utility functions.
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/debug-utilities/minecraft-debug-utilities
package/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export class DebugArrow extends DebugLine {
44
44
  * The number of segments for the base circle of the arrow's
45
45
  * head/tip (default: 4).
46
46
  *
47
+ * Bounds: [3, 128]
47
48
  */
48
49
  headSegments: number;
49
50
  constructor(
@@ -143,7 +144,7 @@ export class DebugShape {
143
144
  * The color of the shape.
144
145
  *
145
146
  */
146
- color: minecraftserver.RGB;
147
+ color: minecraftserver.RGBA;
147
148
  /**
148
149
  * @remarks
149
150
  * The dimension the shape is visible within. If the dimension
@@ -231,18 +232,51 @@ export class DebugSphere extends DebugShape {
231
232
  }
232
233
 
233
234
  /**
234
- * A debug shape class that a text label. The text label
235
- * automatically faces the screen.
235
+ * A debug shape class that represents a text label in the
236
+ * world with a background.
236
237
  */
237
238
  // @ts-ignore Class inheritance allowed for native defined classes
238
239
  export class DebugText extends DebugShape {
239
240
  /**
240
241
  * @remarks
241
- * The text of the shape to display.
242
+ * The color of the background plate of the text. If set to
243
+ * undefined, it will use the default color.
242
244
  *
243
245
  */
244
- text: string;
245
- constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3, text: string);
246
+ backgroundColorOverride?: minecraftserver.RGBA;
247
+ /**
248
+ * @remarks
249
+ * If set to true, the text will be hidden behind blocks or
250
+ * entities. By default this is set to false (will always
251
+ * render).
252
+ *
253
+ */
254
+ depthTest: boolean;
255
+ /**
256
+ * @remarks
257
+ * Get the text of the debug text shape. Returns the RawText of
258
+ * the debug text if `setText` was called with a RawMessage or
259
+ * a RawText object, otherwise returns a string.
260
+ *
261
+ */
262
+ readonly text: minecraftserver.RawMessage | string;
263
+ /**
264
+ * @remarks
265
+ * If set to true, the text will not face the camera and
266
+ * instead will use the rotation from the shape.
267
+ *
268
+ */
269
+ useRotation: boolean;
270
+ constructor(
271
+ location: minecraftserver.DimensionLocation | minecraftserver.Vector3,
272
+ text: minecraftserver.RawMessage | string,
273
+ );
274
+ /**
275
+ * @remarks
276
+ * Sets the text to display.
277
+ *
278
+ */
279
+ setText(text: minecraftserver.RawMessage | string): void;
246
280
  }
247
281
 
248
282
  export interface HandleCounts {
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "name": "@minecraft/debug-utilities",
3
- "version": "1.0.0-beta.1.26.2-stable",
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.0.0",
17
- "@minecraft/server": "^1.17.0 || ^2.0.0"
18
- },
19
- "license": "MIT"
1
+ {
2
+ "name": "@minecraft/debug-utilities",
3
+ "version": "1.0.0-beta.1.26.20-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.0.0",
17
+ "@minecraft/server": "^1.17.0 || ^2.0.0"
18
+ },
19
+ "license": "MIT"
20
20
  }