@minecraft/debug-utilities 1.0.0-beta.1.26.10-preview.27 → 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.
- package/index.d.ts +39 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ export class DebugShape {
|
|
|
144
144
|
* The color of the shape.
|
|
145
145
|
*
|
|
146
146
|
*/
|
|
147
|
-
color: minecraftserver.
|
|
147
|
+
color: minecraftserver.RGBA;
|
|
148
148
|
/**
|
|
149
149
|
* @remarks
|
|
150
150
|
* The dimension the shape is visible within. If the dimension
|
|
@@ -232,18 +232,51 @@ export class DebugSphere extends DebugShape {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* A debug shape class that a text label
|
|
236
|
-
*
|
|
235
|
+
* A debug shape class that represents a text label in the
|
|
236
|
+
* world with a background.
|
|
237
237
|
*/
|
|
238
238
|
// @ts-ignore Class inheritance allowed for native defined classes
|
|
239
239
|
export class DebugText extends DebugShape {
|
|
240
240
|
/**
|
|
241
241
|
* @remarks
|
|
242
|
-
* The
|
|
242
|
+
* The color of the background plate of the text. If set to
|
|
243
|
+
* undefined, it will use the default color.
|
|
243
244
|
*
|
|
244
245
|
*/
|
|
245
|
-
|
|
246
|
-
|
|
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;
|
|
247
280
|
}
|
|
248
281
|
|
|
249
282
|
export interface HandleCounts {
|