import { Entity } from "../entity.cjs"; import { ChatPosition, Data, Nullable, ProcessorOptions } from "../types/index.cjs"; import { ChatMessage } from "prismarine-chat"; //#region src/processor/base-processor.d.ts /** * Base class for processors. */ declare abstract class AbstractBaseProcessor { options: ProcessorOptions; constructor(options: ProcessorOptions); /** * Identifier of the processor. */ getIdentifer(): string; /** * Author of the processor. */ getAuthor(): string; /** * Parse the message and return the death event. * @param position The position of the message. * @param jsonMsg The `Mojangson` message. * @returns The death event if the message is a death message, otherwise null. */ parse(position: ChatPosition, jsonMsg: ChatMessage): DE; } /** * Base class for death events. */ declare abstract class AbstractDeathEvent { position: ChatPosition; jsonMsg: ChatMessage; constructor(position: ChatPosition, jsonMsg: ChatMessage); /** * Check if the message is a valid death event. */ isValidEvent(): boolean; /** * Get the attacker name from the message. */ getAttacker(): Nullable; /** * Get the victim name from the message. */ getVictim(): Nullable; /** * Get the reason from the message. */ getWeapon(): Nullable; /** * Get the reason from the message. */ getReason(): Nullable; /** * Check if the death event occurred near the bot. * @returns True if the death event occurred near the bot, otherwise false. */ isNearest(): boolean; } //#endregion export { AbstractBaseProcessor, AbstractDeathEvent };