UNPKG

yoni-mcscripts-lib

Version:

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

11 lines (10 loc) 557 B
export class ConsoleLogger { static print = globalThis.print; static log = globalThis.console.log?.bind(globalThis.console); static trace = globalThis.console.trace?.bind(globalThis.console); static debug = globalThis.console.debug?.bind(globalThis.console); static info = globalThis.console.info?.bind(globalThis.console); static warn = globalThis.console.warn?.bind(globalThis.console); static error = globalThis.console.error?.bind(globalThis.console); static fatal = globalThis.console.fatal?.bind(globalThis.console); }