2013-12-24 00:23:30 -05:00
|
|
|
package mekanism.client.nei;
|
|
|
|
|
2014-01-18 12:16:14 -05:00
|
|
|
import java.util.ArrayList;
|
2014-01-02 13:00:09 -05:00
|
|
|
import java.util.List;
|
2013-12-24 00:23:30 -05:00
|
|
|
import java.util.Set;
|
|
|
|
|
2014-01-02 21:58:14 -05:00
|
|
|
import mekanism.api.ListUtils;
|
2014-01-18 12:16:14 -05:00
|
|
|
import mekanism.api.gas.Gas;
|
2014-01-02 13:00:09 -05:00
|
|
|
import mekanism.api.gas.GasRegistry;
|
2013-12-24 00:23:30 -05:00
|
|
|
import mekanism.client.gui.GuiChemicalInjectionChamber;
|
2014-01-07 20:55:50 -05:00
|
|
|
import mekanism.common.recipe.RecipeHandler.Recipe;
|
2014-01-02 13:00:09 -05:00
|
|
|
import mekanism.common.util.MekanismUtils;
|
2013-12-24 00:23:30 -05:00
|
|
|
import net.minecraft.item.ItemStack;
|
2014-01-05 03:47:41 +00:00
|
|
|
import net.minecraftforge.oredict.OreDictionary;
|
2013-12-24 00:23:30 -05:00
|
|
|
|
|
|
|
public class ChemicalInjectionChamberRecipeHandler extends AdvancedMachineRecipeHandler
|
|
|
|
{
|
|
|
|
@Override
|
|
|
|
public String getRecipeName()
|
|
|
|
{
|
2014-01-25 16:29:36 -05:00
|
|
|
return MekanismUtils.localize("nei.chemicalInjectionChamber");
|
2013-12-24 00:23:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getRecipeId()
|
|
|
|
{
|
|
|
|
return "mekanism.chemicalinjectionchamber";
|
|
|
|
}
|
2014-03-07 19:00:25 -06:00
|
|
|
|
2013-12-24 00:23:30 -05:00
|
|
|
@Override
|
|
|
|
public String getOverlayIdentifier()
|
|
|
|
{
|
|
|
|
return "chemicalinjectionchamber";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Set getRecipes()
|
|
|
|
{
|
2013-12-24 12:39:27 -05:00
|
|
|
return Recipe.CHEMICAL_INJECTION_CHAMBER.get().entrySet();
|
2013-12-24 00:23:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getGuiTexture()
|
|
|
|
{
|
|
|
|
return "mekanism:gui/GuiChemicalInjectionChamber.png";
|
|
|
|
}
|
2014-03-07 19:00:25 -06:00
|
|
|
|
2013-12-24 00:23:30 -05:00
|
|
|
@Override
|
2014-01-18 12:16:14 -05:00
|
|
|
public List<ItemStack> getFuelStacks(Gas gasType)
|
2013-12-24 00:23:30 -05:00
|
|
|
{
|
2014-01-18 12:16:14 -05:00
|
|
|
if(gasType == GasRegistry.getGas("sulfuricAcid"))
|
|
|
|
{
|
|
|
|
List<ItemStack> fuels = OreDictionary.getOres("dustSulfur");
|
|
|
|
fuels.add(MekanismUtils.getFullGasTank(GasRegistry.getGas("sulfuricAcid")));
|
|
|
|
return fuels;
|
|
|
|
}
|
|
|
|
else if(gasType == GasRegistry.getGas("water"))
|
|
|
|
{
|
|
|
|
return ListUtils.asList(MekanismUtils.getFullGasTank(GasRegistry.getGas("water")));
|
|
|
|
}
|
2014-01-18 14:04:51 -05:00
|
|
|
else if(gasType == GasRegistry.getGas("hydrogenChloride"))
|
|
|
|
{
|
2014-01-18 15:10:17 -05:00
|
|
|
List<ItemStack> fuels = OreDictionary.getOres("dustSalt");
|
|
|
|
fuels.add(MekanismUtils.getFullGasTank(GasRegistry.getGas("hydrogenChloride")));
|
|
|
|
return fuels;
|
2014-01-18 14:04:51 -05:00
|
|
|
}
|
2014-03-07 19:00:25 -06:00
|
|
|
|
2014-01-18 12:16:14 -05:00
|
|
|
return new ArrayList<ItemStack>();
|
2013-12-24 00:23:30 -05:00
|
|
|
}
|
2014-03-07 19:00:25 -06:00
|
|
|
|
2013-12-24 00:23:30 -05:00
|
|
|
@Override
|
|
|
|
public Class getGuiClass()
|
|
|
|
{
|
|
|
|
return GuiChemicalInjectionChamber.class;
|
|
|
|
}
|
|
|
|
}
|