Search in sources :

Example 6 with FuelRecipe

use of gregtech.api.recipes.recipes.FuelRecipe in project GregTech by GregTechCE.

the class FuelRecipeMap method findRecipe.

public FuelRecipe findRecipe(long maxVoltage, FluidStack inputFluid) {
    if (inputFluid == null)
        return null;
    FluidKey fluidKey = new FluidKey(inputFluid);
    FuelRecipe fuelRecipe = recipeFluidMap.get(fluidKey);
    return fuelRecipe != null && fuelRecipe.matches(maxVoltage, inputFluid) ? fuelRecipe : null;
}
Also used : FluidKey(gregtech.api.recipes.FluidKey) FuelRecipe(gregtech.api.recipes.recipes.FuelRecipe)

Aggregations

FuelRecipe (gregtech.api.recipes.recipes.FuelRecipe)6 FluidStack (net.minecraftforge.fluids.FluidStack)3 IFluidTank (net.minecraftforge.fluids.IFluidTank)3 FluidKey (gregtech.api.recipes.FluidKey)2 LinkedHashMap (java.util.LinkedHashMap)2 ItemStack (net.minecraft.item.ItemStack)2 IFuelInfo (gregtech.api.capability.IFuelInfo)1 FluidFuelInfo (gregtech.api.capability.impl.FluidFuelInfo)1 ItemFuelInfo (gregtech.api.capability.impl.ItemFuelInfo)1 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)1