We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0810ef8 commit a3fcc7fCopy full SHA for a3fcc7f
types/iterators.d.ts
@@ -17,6 +17,10 @@ export type RaycastBlock = {
17
face: BlockFace;
18
};
19
20
+export type RaycastResult = RaycastBlock & {
21
+ intersect: Vec3;
22
+}
23
+
24
export type RaycastIntersection = {
25
pos: Vec3;
26
types/world.d.ts
@@ -162,7 +162,7 @@ export declare class WorldSync extends EventEmitter {
162
direction: Vec3,
163
range: number,
164
matcher?: (block: Block) => boolean,
165
- ): RaycastBlock | null;
+ ): RaycastResult | null;
166
167
private _emitBlockUpdate(
168
oldBlock: Block,
0 commit comments