Skip to content

@loontail/minecraft-kit / Loaders

Variable: Loaders

ts
const Loaders: {
  FABRIC: "fabric";
  FORGE: "forge";
  VANILLA: "vanilla";
};

Defined in: src/types/loader.ts:11

Discriminator literal identifying which mod loader is active for a target.

Use the Loaders const object instead of bare strings. loader.type === Loaders.FABRIC is preferred over loader.type === "fabric".

Type Declaration

NameTypeDefault valueDescriptionDefined in
FABRIC"fabric""fabric"Fabric mod loader.src/types/loader.ts:15
FORGE"forge""forge"Forge mod loader.src/types/loader.ts:17
VANILLA"vanilla""vanilla"Plain vanilla Minecraft, no mod loader.src/types/loader.ts:13

MIT License