diff --git a/src/metadata/mod-loader-type.ts b/src/metadata/mod-loader-type.ts new file mode 100644 index 0000000..9215497 --- /dev/null +++ b/src/metadata/mod-loader-type.ts @@ -0,0 +1,16 @@ +enum ModLoaderType { + Fabric = 1, + Forge, +} + +namespace ModLoaderType { + export function getValues(): ModLoaderType[] { + return Object.values(ModLoaderType).filter(x => typeof x === "number"); + } + + export function toString(target: ModLoaderType): string { + return ModLoaderType[target] ?? target.toString(); + } +} + +export default ModLoaderType;