@minecraft/debug-utilities 1.0.0-beta.1.26.3-stable → 1.0.0-beta.1.26.30-preview.21

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 +71 -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
@@ -166,6 +167,16 @@ export class DebugShape {
166
167
  *
167
168
  */
168
169
  readonly location: minecraftserver.Vector3;
170
+ /**
171
+ * @remarks
172
+ * If defined, this distance will be used to determine how far
173
+ * away this shape will be rendered for each client. By default
174
+ * the distance will match the client's render distance
175
+ * setting.
176
+ *
177
+ * Minimum Value: 0
178
+ */
179
+ maximumRenderDistance?: number;
169
180
  /**
170
181
  * @remarks
171
182
  * The rotation of the shape (Euler angles - [Pitch, Yaw,
@@ -231,18 +242,72 @@ export class DebugSphere extends DebugShape {
231
242
  }
232
243
 
233
244
  /**
234
- * A debug shape class that a text label. The text label
235
- * automatically faces the screen.
245
+ * A debug shape class that represents a text label in the
246
+ * world with a background.
236
247
  */
237
248
  // @ts-ignore Class inheritance allowed for native defined classes
238
249
  export class DebugText extends DebugShape {
239
250
  /**
240
251
  * @remarks
241
- * The text of the shape to display.
252
+ * If set to true, the debug text will render the back-face of
253
+ * the background. Defaults to true but will always be false if
254
+ * 'useRotation' is set to false.
255
+ *
256
+ */
257
+ backfaceVisible: boolean;
258
+ /**
259
+ * @remarks
260
+ * The color of the background plate of the text. If set to
261
+ * undefined, it will use the default color.
262
+ *
263
+ */
264
+ backgroundColorOverride?: minecraftserver.RGBA;
265
+ /**
266
+ * @remarks
267
+ * If set to true, the text will be hidden behind blocks or
268
+ * entities. By default this is set to false (will always
269
+ * render).
270
+ *
271
+ */
272
+ depthTest: boolean;
273
+ /**
274
+ * @remarks
275
+ * Get the text of the debug text shape. Returns the RawText of
276
+ * the debug text if `setText` was called with a RawMessage or
277
+ * a RawText object, otherwise returns a string.
278
+ *
279
+ */
280
+ readonly text: minecraftserver.RawMessage | string;
281
+ /**
282
+ * @remarks
283
+ * If set to true, the debug text will render the back-face of
284
+ * the text. Defaults to true but will always be false if
285
+ * 'useRotation' is set to false.
286
+ *
287
+ */
288
+ textBackfaceVisible: boolean;
289
+ /**
290
+ * @remarks
291
+ * If set to true, the text will not face the camera and
292
+ * instead will use the rotation from the shape.
293
+ *
294
+ */
295
+ useRotation: boolean;
296
+ constructor(
297
+ location: minecraftserver.DimensionLocation | minecraftserver.Vector3,
298
+ text: minecraftserver.RawMessage | string,
299
+ );
300
+ /**
301
+ * @remarks
302
+ * Sets the text to display.
303
+ *
304
+ * @throws This function can throw errors.
305
+ *
306
+ * {@link minecraftcommon.ArgumentOutOfBoundsError}
242
307
  *
308
+ * {@link minecraftserver.RawMessageError}
243
309
  */
244
- text: string;
245
- constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3, text: string);
310
+ setText(text: minecraftserver.RawMessage | string): void;
246
311
  }
247
312
 
248
313
  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.3-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.30-preview.21",
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
  }