@minecraft/debug-utilities 1.0.0-beta.1.26.30-preview.26 → 1.0.0-beta.1.26.30-preview.28

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 +106 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -76,6 +76,64 @@ export class DebugCircle extends DebugShape {
76
76
  constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3);
77
77
  }
78
78
 
79
+ /**
80
+ * A debug shape class that represents a cone.
81
+ */
82
+ // @ts-ignore Class inheritance allowed for native defined classes
83
+ export class DebugCone extends DebugShape {
84
+ /**
85
+ * @remarks
86
+ * The height of the cone.
87
+ *
88
+ */
89
+ height: number;
90
+ /**
91
+ * @remarks
92
+ * The number of segments used to approximate the circular base
93
+ * of the cone. Bounds: [3, 128]
94
+ *
95
+ * Bounds: [3, 128]
96
+ */
97
+ numSegments: number;
98
+ /**
99
+ * @remarks
100
+ * The radii of the cone's circular base (x: bottom radius, y:
101
+ * top radius).
102
+ *
103
+ */
104
+ radii: minecraftserver.Vector2;
105
+ constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3);
106
+ }
107
+
108
+ /**
109
+ * A debug shape class that represents a cylinder.
110
+ */
111
+ // @ts-ignore Class inheritance allowed for native defined classes
112
+ export class DebugCylinder extends DebugShape {
113
+ /**
114
+ * @remarks
115
+ * The height of the cylinder.
116
+ *
117
+ */
118
+ height: number;
119
+ /**
120
+ * @remarks
121
+ * The number of segments used to approximate the circular
122
+ * cross-section of the cylinder. Bounds: [3, 128]
123
+ *
124
+ * Bounds: [3, 128]
125
+ */
126
+ numSegments: number;
127
+ /**
128
+ * @remarks
129
+ * The radii of the cylinder's circular cross-section (x:
130
+ * bottom radius, y: top radius).
131
+ *
132
+ */
133
+ radii: minecraftserver.Vector2;
134
+ constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3);
135
+ }
136
+
79
137
  /**
80
138
  * Debug Drawing class used to allow adding and removing
81
139
  * wireframe shapes in world space.
@@ -107,6 +165,28 @@ export class DebugDrawer {
107
165
  removeShape(shape: DebugShape): void;
108
166
  }
109
167
 
168
+ /**
169
+ * A debug shape class that represents an ellipsoid.
170
+ */
171
+ // @ts-ignore Class inheritance allowed for native defined classes
172
+ export class DebugEllipsoid extends DebugShape {
173
+ /**
174
+ * @remarks
175
+ * The radii of the ellipsoid along each axis (x, y, z).
176
+ *
177
+ */
178
+ radii: minecraftserver.Vector3;
179
+ /**
180
+ * @remarks
181
+ * The number of segments used to approximate the ellipsoid per
182
+ * axis. Bounds: [3, 128]
183
+ *
184
+ * Bounds: [3, 128]
185
+ */
186
+ segmentsPerAxis: number;
187
+ constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3);
188
+ }
189
+
110
190
  /**
111
191
  * A debug shape class that represents a line segment.
112
192
  */
@@ -125,6 +205,32 @@ export class DebugLine extends DebugShape {
125
205
  );
126
206
  }
127
207
 
208
+ /**
209
+ * A debug shape class that represents a pyramid.
210
+ */
211
+ // @ts-ignore Class inheritance allowed for native defined classes
212
+ export class DebugPyramid extends DebugShape {
213
+ /**
214
+ * @remarks
215
+ * The depth of the pyramid's base.
216
+ *
217
+ */
218
+ depth?: number;
219
+ /**
220
+ * @remarks
221
+ * The height of the pyramid.
222
+ *
223
+ */
224
+ height: number;
225
+ /**
226
+ * @remarks
227
+ * The width of the pyramid's base.
228
+ *
229
+ */
230
+ width: number;
231
+ constructor(location: minecraftserver.DimensionLocation | minecraftserver.Vector3);
232
+ }
233
+
128
234
  /**
129
235
  * The base class for all debug shapes. Represents an object in
130
236
  * the world and its base properties.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/debug-utilities",
3
- "version": "1.0.0-beta.1.26.30-preview.26",
3
+ "version": "1.0.0-beta.1.26.30-preview.28",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {