Skip to content

@loontail/minecraft-kit v0.8.14 / ProcessorRef

Type alias: ProcessorRef

ts
type ProcessorRef: {
  index: number;
  mainClass: string;
};

A single processor description used in Forge events.

Example

ts
import { EventTypes, type ProcessorRef } from "@loontail/minecraft-kit";

const onForge = (e: { type: typeof EventTypes.FORGE_PROCESSOR_STARTED; processor: ProcessorRef; total: number }) =>
  console.log(`forge processor ${e.processor.index + 1}/${e.total}: ${e.processor.mainClass}`);

Type declaration

MemberType
indexnumber
mainClassstring

Source

src/types/events.ts:90

MIT License