UNPKG

yoni-mcscripts-lib

Version:

为 Minecraft Script API 中的部分接口创建了 wrapper,并提供简单的事件管理器和任务管理器,另附有一些便于代码编写的一些小工具。

24 lines (22 loc) 553 B
import { EntityValue } from "../../types"; /** * @beta * Contains optional parameters for registering an entity * event. */ export default interface EntityEventOptions { /** * @remarks * If this value is set, this event will only fire for entities * that match the entities within this collection. * */ entities?: EntityValue[]; /** * @remarks * If this value is set, this event will only fire if the * impacted entities' type matches this parameter. * */ entityTypes?: string[]; }