The generator of this module is divided into two series, which are the water -to -motor series and turbine generator, but the basic power generation of the same -level liquid generator is 1.5 times the same -level turbo generator.
Liquid generator (water hair motor, steam generator):
Code part:
@outerrideProteCted Long Updatenergy () {
Long Receivenergy = 0;
FLUIDSTACK FLUID = this.fluidtank.getflum ();
If (this.GetenerGyStoredlong ()
Float RealPowerGeneration = this.getRealPowerGeneration ()*this.Getfluidmagnification ();
The amount of fluidity required for int = (int) ((this.getmaxnergystoredlong () -This.GetenerGyStoredlong ())/RealPowergeneration*this.basicamountOidtoProducenerry);
// Try to remove the specified amount of liquid from the storage tank
FLUIDSTACK FLUIDSTACK = FLUIDTANK.DRAINININTERNAL (math.min (the amount of fluid, this.maxfluiddrain), true);
// If the liquid is pulled out, calculate the receiving power, otherwise it will be 0
Ifidstack! = NULL) {
Receivenergy = (Long) ((FLUIDSTACK.AMOUNT/(FLOAT) this.basicamountoffluProducenenergy);*RealPowerGeneration)
}
}
Return this.modifyINERGYSTORED (Receivenergy);}
Analysis: According to the code, you can know that the amount of power generation = fluid consumption /The amount of fluidity required for one-power generation* Basic power generation* (the number of component upgrades-the number of power generation upgrades+ 1)* fluid multiplier, and the basic power generation and one-time power generation neededThe amount of fluid is fixed. The higher the level of liquid generator, the higher the basic power generation, and the fluid multipliers of different fluids are basically different, so only care about fluid consumption.其中:流体消耗= Math.min(((最大能量储存- 现有的能量)/ (基础发电量* 流体倍率)),最大流体消耗),而最大流体消耗= (组件升级-液体提取的数量+1)* The amount of fluid required for the power generation.
Supporting fluids and corresponding fluidity: Water: 1.0, steam: 1.5
The components that can be put in and the corresponding quantity: component upgrade-power generation upgrade: 64 * level of generator, component upgrade-liquid extraction: 64 * level of the generator level
Conclusion: The maximum power generation of water-to-motor theory = (component upgrade-quantity of liquid extraction + 1) * (the number of component upgrade-number of power generation upgrades + 1) * Basic power generation * fluid multiplier rate
Turbine generator:
Code part:
@outerridepublic Long Updatenergy () {
Long Receivenergy = 0;
If (this.GetenerGyStoredlong ()
Float liquidLeve = this.getliquidheight ();
Receivenergy = (int) (this.getRealPowerGeneration ()*liquidLeve);
}
Return this.modifyINERGYSTORED (Receivenergy);
}
Analysis: According to the code, you can know that the power generation = fluid height*basic power generation*(the number of component upgrades-the number of power generation upgrades+ 1)*fluid multiplier, and the basic power generation is also fixed.Basic power generation, so only care about the height of the fluid.
Among them: The height of the water square block above the block (can be placed until the water cubes cannot be placed, and it is not limited to whether it is a complete block), so the fluid height is only limited by the world's height.
Supporting fluid and corresponding fluidity: Water: 1.0
The components that can be put in and the corresponding quantity: component upgrade-power generation upgrade: 64 * level of the generator
Conclusion: The maximum power generation of the theoretical theory of the water hair motor = (the highest height of the world -1) *Basic power generation *(the number of component upgrade -the number of power generation upgrades + 1) *fluid multiplier rate