BiomesOPlenty/apis/forestry/api/fuels/GeneratorFuel.java

32 lines
855 B
Java
Raw Normal View History

2013-07-28 10:37:31 +00:00
package forestry.api.fuels;
import java.util.HashMap;
import net.minecraftforge.fluids.Fluid;
2013-07-28 10:37:31 +00:00
import net.minecraftforge.fluids.FluidStack;
public class GeneratorFuel {
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;
}
}