Skip to content

Remove printer mixins; printer-side TakeItOutCompat handles the integration - #5

Open
BiliXWhite wants to merge 2 commits into
Rofumer:26.2from
BiliXWhite:26.2
Open

Remove printer mixins; printer-side TakeItOutCompat handles the integration#5
BiliXWhite wants to merge 2 commits into
Rofumer:26.2from
BiliXWhite:26.2

Conversation

@BiliXWhite

Copy link
Copy Markdown

The refactored litematica-printer (26.2+) now actively adapts to TakeItOut
through its own TakeItOutCompat in interfaces/compat/:

  • ModuleManager.tick() calls TakeItOutCompat.isAwaitingItem() to
    block all module processing while a server-side extraction is pending
    → replaces the old NewPrinterMixin HEAD injection on
    ClientPlayerTickManager.tick() / ModuleManager.tick()

  • InventoryUtils.switchToItems() calls TakeItOutCompat.tryExtract()
    as a last resort when the required item is not in the player's
    inventory and QuickShulker is unavailable
    → replaces the TAIL injection that manually scanned PrinterBox
    positions for shulker extractions

Since the printer side now fully drives the TakeItOut integration,
the TakeItOut-side NewPrinterMixin is entirely redundant and has
been removed.

Also, I fixed gradle's dependency request, which should not be hardcoded with "libs/".

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@BiliXWhite