UNPKG

mineflayer-utils

Version:

A collection of small utility classes, functions, and events which work nicely with Mineflayer.

5 lines (4 loc) 243 B
import { Entity } from "prismarine-entity"; import { Bot } from "mineflayer"; export declare type EntityFilter = (entity: Entity) => boolean; export declare function getNearestEntity(bot: Bot, filter?: EntityFilter, count?: number): Entity[];