Smeltery
The Smeltery is the central multiblock structure of TinkersConstruct. It smelts ores and alloys metals using lava as fuel.
Structure
- Controller: SmelteryLogic tile entity (IMasterLogic + IFacingLogic + IFluidTank)
- Lava Tank: LavaTankLogic (IServantLogic) - stores fuel
- Drains: SmelteryDrainLogic - input/output fluid
- Casting Table: CastingTableLogic - table casting via SmelteryCastEvent
- Casting Basin: CastingBasinLogic - basin casting via SmelteryCastedEvent
- Blocks: SmelteryBlock (seared brick), LavaTankBlock, GlassBlockConnected, CastingChannelBlock
Properties
- Max size: 7×7×7 (MAX_SMELTERY_SIZE = 7)
- Capacity: MB_PER_BLOCK_CAPACITY = ingotLiquidValue × 10 per block
- Layer validation: layer-by-layer flood-fill
- Fluids: Supports 20+ molten metal registrations (Cobalt, Ardite, Manyullyn, Copper, Tin, Bronze, Aluminum, AluBrass, Alumite, Steel, PigIron, Obsidian, etc.)
- Servant system: MultiServantLogic tracks all connected blocks
- Fuel tracking: fuelGague, fuelAmount, fuelCapacity, internalTemp
- Damage source: SmelteryDamageSource for molten metal damage
Interfaces
- IMasterLogic: master controller
- IServantLogic: subordinate blocks
- IFacingLogic: block face direction
- IFluidTank: fluid storage (maxLiquid, currentLiquid)
- IActiveLogic: active state tracking
- IFluidHandler: fluid import/export