litematica-printer icon indicating copy to clipboard operation
litematica-printer copied to clipboard

Add support for Minecraft 1.21.11 with API compatibility fixes

Open ejeebus opened this issue 5 months ago • 0 comments

Summary

Adds a v1_21_11 module targeting Minecraft 1.21.11 with sakura-ryoko's Litematica fork (1.21.11-0.26.3), ported from the existing v1_21_4 module.

API changes from 1.21.4 → 1.21.11

  • lastPitch/lastYaw renamed to prevPitch/prevYaw and moved from ClientPlayerEntity up to Entity — removed EntityAccessor and updated all access sites
  • lastSneaking field removed from ClientPlayerEntity — removed accessor and updated PresShift/ReleaseShiftAction
  • invertYMouse made private in GameOptions — replaced direct field access with a new GameOptionsAccessor mixin using @Accessor
  • invertYMouse() public getter added in 1.21.11 — MixinMouse updated to call it directly without reflection
  • LitematicaSchematicAccessor @Invoker updated: constructor signature changed from (File, FileType) to (Path, FileType) in sakura-ryoko's fork; SchematicConverter updated to pass .toPath() accordingly
  • PlayerInventoryAccessor added to expose offHandInventory — required for offhand slot handling that changed in 1.21.11

Notes

  • The v1_21_4 module is unchanged
  • Tested on a live 1.21.11 Fabric client connecting to a 1.21.4 server via ViaFabricPlus

ejeebus avatar Jun 10 '26 14:06 ejeebus