public FurnaceUI(Ref <Item> input, Ref <Item> output, EnergyCore energyCore, string furnaceName) { this._input = new InputOutputSlot(input, Main.inventoryBack10Texture); this._output = new InputOutputSlot(output, Main.inventoryBack10Texture); this._furnaceName = furnaceName; _energyBar = new UIEnergyBar(energyCore); }
public FurnaceUI(Ref <Item> input, Ref <Item> output, Ref <Item> fuel, FuelCore energyCore, string furnaceName) { this._input = new InputOutputSlot(input, Main.inventoryBack10Texture); this._output = new InputOutputSlot(output, Main.inventoryBack10Texture); if (energyCore != null) { _energyBar = new UIEnergyBar(energyCore); } this._fuel = new FuelSlot(fuel, Main.inventoryBack10Texture, energyCore); this._furnaceName = furnaceName; }