How teamdman/superfactorymanager works
Main Components
a. Core Systems:
• Program Execution Engine (ca.teamdman.sfm.common.program)
• AST (Abstract Syntax Tree) System (ca.teamdman.sfml.ast)
• Network Management System (ca.teamdman.sfm.common.cablenetwork)
• Resource Type System (ca.teamdman.sfm.common.resourcetype)
b. User Interface Components:
• In-game GUI Screens (ca.teamdman.sfm.client.gui.screen)
• VSCode Extension Integration (vscodeextension folder)
• JEI Integration (ca.teamdman.sfm.client.jei)
c. Block/Item Components:
• Factory Manager Block
• Cable Systems
• Disk Storage System
Relationships
[User Interface Layer]
• ↓
[Program Management]
• ↓
[Execution Engine] ←→ [Resource Type System]
• ↓
[Cable Network] ←→ [Block Integration]
• ↓
[Minecraft Integration Layer]
Specific Implementation Details
Key architectural patterns:
• Command pattern for program execution
• Observer pattern for network updates
• Factory pattern for resource type handling
• Visitor pattern for AST processing
Integration Points
Connections with:
• Minecraft game systems
• Mod compatibility layers (Mekanism, AE2, etc.)
• VSCode extension communication
Data Flow
Key flows:
[User Input] → [Program Parser] → [AST] → [Execution Engine]
[Execution Engine] → [Resource Management] → [Block Operations]
Key Subsystems
Detail these important subsystems:
• Program compilation pipeline
• Network scanning and updating
• Resource type resolution
• Block state management
The integration points with Minecraft and other mods
This will provide a clear understanding of how the mod processes user-written programs and translates them into in-game automation actions while maintaining compatibility with other mods and Minecraft itself.