mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Making a start on Gas Centrifuge.
This commit is contained in:
1 parent
5dc0e5dca1
commit
b5f3d77b83
9 files changed
+307
-2
No files matched your search
@@ -26,6 +26,7 @@ import mekanism.common.recipe.machines.CrusherRecipe;
|
||||
import mekanism.common.recipe.machines.CrystallizerRecipe;
|
||||
import mekanism.common.recipe.machines.DissolutionRecipe;
|
||||
import mekanism.common.recipe.machines.EnrichmentRecipe;
|
||||
import mekanism.common.recipe.machines.GasCentrifugeRecipe;
|
||||
import mekanism.common.recipe.machines.InjectionRecipe;
|
||||
import mekanism.common.recipe.machines.MachineRecipe;
|
||||
import mekanism.common.recipe.machines.MetallurgicInfuserRecipe;
|
||||
@@ -230,6 +231,11 @@ public final class RecipeHandler
|
||||
addRecipe(Recipe.AMBIENT_ACCUMULATOR, new AmbientGasRecipe(dimensionID, ambientGasName));
|
||||
}
|
||||
|
||||
public static void addCentrifugeRecipe(GasStack inputGas, GasStack outputGas)
|
||||
{
|
||||
addRecipe(Recipe.GAS_CENTRIFUGE, new GasCentrifugeRecipe(inputGas, outputGas));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Metallurgic Infuser Recipe for the InfusionInput in the parameters.
|
||||
* @param input - input Infusion
|
||||
@@ -338,6 +344,19 @@ public final class RecipeHandler
|
||||
return null;
|
||||
}
|
||||
|
||||
public static GasCentrifugeRecipe getCentrifugeRecipe(GasInput input)
|
||||
{
|
||||
if(input.isValid())
|
||||
{
|
||||
HashMap<GasInput, GasCentrifugeRecipe> recipes = Recipe.GAS_CENTRIFUGE.get();
|
||||
|
||||
GasCentrifugeRecipe recipe = recipes.get(input);
|
||||
return recipe == null ? null : recipe.copy();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the ChanceMachineRecipe of the ItemStackInput in the parameters, using the map in the parameters.
|
||||
* @param input - ItemStackInput
|
||||
@@ -499,7 +518,8 @@ public final class RecipeHandler
|
||||
CHEMICAL_WASHER(new HashMap<GasInput, WasherRecipe>()),
|
||||
CHEMICAL_CRYSTALLIZER(new HashMap<GasInput, CrystallizerRecipe>()),
|
||||
PRESSURIZED_REACTION_CHAMBER(new HashMap<PressurizedInput, PressurizedRecipe>()),
|
||||
AMBIENT_ACCUMULATOR(new HashMap<IntegerInput, AmbientGasRecipe>());
|
||||
AMBIENT_ACCUMULATOR(new HashMap<IntegerInput, AmbientGasRecipe>()),
|
||||
GAS_CENTRIFUGE(new HashMap<GasInput, GasCentrifugeRecipe>());
|
||||
|
||||
private HashMap recipes;
|
||||
|
||||
|
||||
Reference in new issue
Block a user