Add support for configuring machine energy storage. (#5418)

* Add support for configurable machines storage.

* Make factories and tooltips use machine storage from config. Renaming.

- Renamed config instance members, to reduce redundancy
- Made machines get Storage and Usage from MachineType
- Other miscellaneous cosmetic changes on the matter

* Update ItemBlockMachine.java

* Tweak factories to always have storage needed to run all processes.

* Add storage config to PacketConfigSync.
This commit is contained in:
Matej Zajo Kralik authored and Richard Freimer committed 2019-05-01 13:15:55 -04:00
1 parent 14d60702b6
commit 36aa81dcf4
47 files changed
+305 -169

No files matched your search

@@ -64,14 +64,14 @@ public abstract class TileEntityAdvancedElectricMachine<RECIPE extends AdvancedM
*
* @param soundPath - location of the sound effect
* @param name - full name of this machine
* @param maxEnergy - maximum amount of energy this machine can hold.
* @param baseMaxEnergy - maximum amount of energy this machine can hold.
* @param baseEnergyUsage - how much energy this machine uses per tick.
* @param ticksRequired - how many ticks it takes to smelt an item.
* @param secondaryPerTick - how much secondary energy (fuel) this machine uses per tick.
*/
public TileEntityAdvancedElectricMachine(String soundPath, String name, double maxEnergy, double baseEnergyUsage,
public TileEntityAdvancedElectricMachine(String soundPath, String name, double baseMaxEnergy, double baseEnergyUsage,
int ticksRequired, int secondaryPerTick) {
super(soundPath, name, maxEnergy, baseEnergyUsage, 4, ticksRequired,
super(soundPath, name, baseMaxEnergy, baseEnergyUsage, 4, ticksRequired,
MekanismUtils.getResource(ResourceType.GUI, "GuiAdvancedMachine.png"));
configComponent = new TileComponentConfig(this, TransmissionType.ITEM, TransmissionType.ENERGY);