Skip to content

Repository files navigation

CleanLiteLoader

image

LiteLoader compatibility layer for Cleanroom 1.12.2.

FML modid: liteloader. Display name remains CleanLiteLoader.

  • Public API: com.mumfrey.liteloader.*
  • Implementation: mods.hileb.cleanliteloader.*

中文说明

What it does

  • Coremod scans mods/ and mods/1.12.2/ for .litemod / jars with litemod.json, then injects them onto the LaunchClassLoader.
  • litemod.json is parsed with Gson lenient mode (comments and trailing commas allowed). mcversion of * is accepted.
  • mixinConfigs from metadata are registered with Mixins.addConfiguration (not LiteLoader tweaks / class transformers).
  • LiteMods implementing LiteMod are constructed and init()'d during FML init.
  • Resource-only litemods (no LiteMod class, e.g. splash packs) are still listed and injected as resource packs.
  • Each discovered litemod is injected into FML's raw Loader.identifyDuplicates list as a DummyModContainer, so Cleanroom's mod list GUI can see them. Default item icon is minecraft:egg.
  • LiteMod ConfigPanel / AbstractConfigPanel screens are exposed through IModGuiFactory, so Cleanroom's config button opens the original LiteLoader panel.
  • Forge events cover tick, HUD, chat, join/leave, plugin channels, block interaction, screenshots, and MouseEvent clicks.
  • Mixins are only used where Forge cannot: runGameLoop, FBO, drawChat, login success, join-game packet, EntityRenderer passes.
  • @ExposableOptions fields are written as JSON under liteconfig/.

Not implemented

  • Update checker
  • Tweak / ClassTransformer injection from litemods
  • Original LiteLoader GUI tab
  • jinput
  • Permissions replication protocol

Requirements

  • Minecraft 1.12.2
  • Cleanroom
  • Java 8+ runtime (build uses the project toolchain)

Do not install original LiteLoader next to this jar.

Install

  1. Build or download liteloader-1.0.0.jar.
  2. Put it in the instance mods/ folder.
  3. Put .litemod files in mods/ or mods/1.12.2/.
  4. Launch with Cleanroom.

Build

gradlew.bat build

Output: build/libs/liteloader-1.0.0.jar

Links

About

CleanLiteLoader is the opensourse compatibility for liteloader compat with cleanroom

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages