Commit Graph

3 Commits

Author SHA1 Message Date
GaLi
ce09d26fe1 RecipeFinderUtil改用JEI提供的API 2026-02-28 15:34:18 +08:00
GaLi
e7d9e02043 优化样板生成逻辑 2026-02-26 18:08:03 +08:00
范翰德202509
7c2286cd68 feat: Add Ctrl+Q quick pattern creation from JEI
Implement a new keybind (Ctrl+Q) to quickly create AE2 patterns from JEI items.

Features:
- Press Ctrl+Q while hovering over any item in JEI to create patterns instantly
- Intelligent recipe selection (prioritizes crafting recipes)
- Support Shift+Ctrl+Q to search recipes where item is used as input
- JEI bookmark priority system for ingredient selection
- Smart pattern placement (crafting patterns drop, processing patterns to inventory)
- Consumes blank pattern from player inventory with auto-refund on failure

Configuration:
- ctrlQConsumeBlankPattern: Toggle blank pattern consumption (default: true)
- ctrlQExtractFromNetwork: Extract patterns from AE network (default: true, WIP)

Technical changes:
- Add CtrlQPatternKeyHandler for client-side key handling
- Add CreateCtrlQPatternC2SPacket for C2S network communication
- Add RecipeFinderUtil with priority sorting
- Add ModKeybindings for keybind registration
- Update ModConfig with new options
- Register network packet in ModNetwork
- Add English translations

Code quality:
- Cleaned up debug logs
- Removed local development configuration
2026-02-22 11:28:52 +08:00