Appearance
@loontail/minecraft-kit v0.5.0 / Loaders
Variable: Loaders
ts
const Loaders: {
FABRIC: "fabric";
FORGE: "forge";
VANILLA: "vanilla";
};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
| Member | Type | Value | Description |
|---|---|---|---|
FABRIC | "fabric" | "fabric" | Fabric mod loader. |
FORGE | "forge" | "forge" | Modern (1.13+) Forge mod loader. |
VANILLA | "vanilla" | "vanilla" | Plain vanilla Minecraft, no mod loader. |