use of buildcraft.transport.gate.EnumGateLogic in project BuildCraft by BuildCraft.
the class BCTransportRecipes method makeGateModifierAssembly.
private static void makeGateModifierAssembly(int multiplier, EnumGateMaterial material, EnumGateModifier modifier, IngredientStack... mods) {
for (EnumGateLogic logic : EnumGateLogic.VALUES) {
String name = String.format("gate-modifier-%s-%s-%s", logic, material, modifier);
ItemStack toUpgrade = BCTransportItems.plugGate.getStack(new GateVariant(logic, material, EnumGateModifier.NO_MODIFIER));
ItemStack output = BCTransportItems.plugGate.getStack(new GateVariant(logic, material, modifier));
ImmutableSet<IngredientStack> input = new ImmutableSet.Builder<IngredientStack>().add(IngredientStack.of(toUpgrade)).add(mods).build();
AssemblyRecipeRegistry.register((new AssemblyRecipeBasic(name, MjAPI.MJ * multiplier, input, output)));
}
}
Aggregations