2013-07-28 10:37:31 +00:00
|
|
|
package forestry.api.fuels;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
2013-09-21 10:38:25 +00:00
|
|
|
import net.minecraftforge.fluids.Fluid;
|
2013-07-28 10:37:31 +00:00
|
|
|
import net.minecraftforge.fluids.FluidStack;
|
|
|
|
|
|
|
|
public class GeneratorFuel {
|
|
|
|
|
2013-09-21 10:38:25 +00:00
|
|
|
public static HashMap<Integer, GeneratorFuel> fuels = new HashMap<Integer, GeneratorFuel>();
|
2013-07-28 10:37:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* LiquidStack representing the fuel type and amount consumed per triggered cycle.
|
|
|
|
*/
|
|
|
|
public final FluidStack fuelConsumed;
|
|
|
|
/**
|
|
|
|
* EU emitted per tick while this fuel is being consumed in the generator (i.e. biofuel = 32, biomass = 8).
|
|
|
|
*/
|
|
|
|
public final int eu;
|
|
|
|
/**
|
|
|
|
* Rate at which the fuel is consumed. 1 - Every tick 2 - Every second tick 3 - Every third tick etc.
|
|
|
|
*/
|
|
|
|
public final int rate;
|
|
|
|
|
|
|
|
public GeneratorFuel(FluidStack fuelConsumed, int eu, int rate) {
|
|
|
|
this.fuelConsumed = fuelConsumed;
|
|
|
|
this.eu = eu;
|
|
|
|
this.rate = rate;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|