@nxg-org/mineflayer-util-plugin 1.5.1 → 1.5.2
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Bot } from "mineflayer";
|
|
2
2
|
import type { Vec3 } from "vec3";
|
|
3
|
+
import type { Entity } from "prismarine-entity";
|
|
3
4
|
import { goals, Movements } from "mineflayer-pathfinder";
|
|
4
5
|
export declare class MovementFunctions {
|
|
5
6
|
private bot;
|
|
@@ -29,13 +30,13 @@ export declare class MovementFunctions {
|
|
|
29
30
|
* @param entity Prismarine-Entity Entity
|
|
30
31
|
* @returns have the goals changed.
|
|
31
32
|
*/
|
|
32
|
-
retreatFromEntity(entity:
|
|
33
|
+
retreatFromEntity(entity: Entity, distance: number, dynamic?: boolean): boolean;
|
|
33
34
|
/**
|
|
34
35
|
* Follow entity with a specific range. Will not approach past a certain distance either.
|
|
35
36
|
* @param entity Prismarine-Entity Entity
|
|
36
37
|
* @returns have the goals changed
|
|
37
38
|
*/
|
|
38
|
-
followEntityWithRespectRange(entity:
|
|
39
|
+
followEntityWithRespectRange(entity: Entity, followDistance: number, invertDistance?: number): boolean;
|
|
39
40
|
forceLook(yaw: number, pitch: number, update?: boolean, onGround?: boolean): void;
|
|
40
41
|
forceLookAt(pos: Vec3, update?: boolean, onGround?: boolean): void;
|
|
41
42
|
lazyTeleport(endPos: Vec3): void;
|