@minecraft/debug-utilities 1.0.0-beta.1.26.2-stable → 1.0.0-beta.1.26.20-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.
- package/README.md +8 -8
- package/index.d.ts +56 -6
- 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.
|
|
147
|
+
color: minecraftserver.RGBA;
|
|
147
148
|
/**
|
|
148
149
|
* @remarks
|
|
149
150
|
* The dimension the shape is visible within. If the dimension
|
|
@@ -231,18 +232,67 @@ export class DebugSphere extends DebugShape {
|
|
|
231
232
|
}
|
|
232
233
|
|
|
233
234
|
/**
|
|
234
|
-
* A debug shape class that a text label
|
|
235
|
-
*
|
|
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
|
-
*
|
|
242
|
+
* If set to true, the debug text will render the back-face of
|
|
243
|
+
* the background. Defaults to true but will always be false if
|
|
244
|
+
* 'useRotation' is set to false.
|
|
242
245
|
*
|
|
243
246
|
*/
|
|
244
|
-
|
|
245
|
-
|
|
247
|
+
backfaceVisible: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* @remarks
|
|
250
|
+
* The color of the background plate of the text. If set to
|
|
251
|
+
* undefined, it will use the default color.
|
|
252
|
+
*
|
|
253
|
+
*/
|
|
254
|
+
backgroundColorOverride?: minecraftserver.RGBA;
|
|
255
|
+
/**
|
|
256
|
+
* @remarks
|
|
257
|
+
* If set to true, the text will be hidden behind blocks or
|
|
258
|
+
* entities. By default this is set to false (will always
|
|
259
|
+
* render).
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
depthTest: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* @remarks
|
|
265
|
+
* Get the text of the debug text shape. Returns the RawText of
|
|
266
|
+
* the debug text if `setText` was called with a RawMessage or
|
|
267
|
+
* a RawText object, otherwise returns a string.
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
readonly text: minecraftserver.RawMessage | string;
|
|
271
|
+
/**
|
|
272
|
+
* @remarks
|
|
273
|
+
* If set to true, the debug text will render the back-face of
|
|
274
|
+
* the text. Defaults to true but will always be false if
|
|
275
|
+
* 'useRotation' is set to false.
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
278
|
+
textBackfaceVisible: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* @remarks
|
|
281
|
+
* If set to true, the text will not face the camera and
|
|
282
|
+
* instead will use the rotation from the shape.
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
useRotation: boolean;
|
|
286
|
+
constructor(
|
|
287
|
+
location: minecraftserver.DimensionLocation | minecraftserver.Vector3,
|
|
288
|
+
text: minecraftserver.RawMessage | string,
|
|
289
|
+
);
|
|
290
|
+
/**
|
|
291
|
+
* @remarks
|
|
292
|
+
* Sets the text to display.
|
|
293
|
+
*
|
|
294
|
+
*/
|
|
295
|
+
setText(text: minecraftserver.RawMessage | string): void;
|
|
246
296
|
}
|
|
247
297
|
|
|
248
298
|
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.
|
|
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.22",
|
|
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
|
}
|