2013-08-26 18:49:32 -04:00
|
|
|
package mekanism.client.nei;
|
2013-08-10 20:52:59 +01:00
|
|
|
|
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-08-10 20:52:59 +01: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-08-26 18:49:32 -04:00
|
|
|
import mekanism.client.gui.GuiPurificationChamber;
|
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-08-10 20:52:59 +01:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class PurificationChamberRecipeHandler extends AdvancedMachineRecipeHandler
|
|
|
|
{
|
|
|
|
@Override
|
|
|
|
public String getRecipeName()
|
|
|
|
{
|
2014-01-25 16:29:36 -05:00
|
|
|
return MekanismUtils.localize("tile.MachineBlock.PurificationChamber.name");
|
2013-08-10 20:52:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getRecipeId()
|
|
|
|
{
|
|
|
|
return "mekanism.purificationchamber";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getOverlayIdentifier()
|
|
|
|
{
|
|
|
|
return "purificationchamber";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Set getRecipes()
|
|
|
|
{
|
|
|
|
return Recipe.PURIFICATION_CHAMBER.get().entrySet();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getGuiTexture()
|
|
|
|
{
|
|
|
|
return "mekanism:gui/GuiPurificationChamber.png";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-01-18 12:16:14 -05:00
|
|
|
public List<ItemStack> getFuelStacks(Gas gasType)
|
2013-08-10 20:52:59 +01:00
|
|
|
{
|
2014-01-18 12:16:14 -05:00
|
|
|
if(gasType == GasRegistry.getGas("oxygen"))
|
|
|
|
{
|
|
|
|
return ListUtils.asList(new ItemStack(Item.flint), MekanismUtils.getFullGasTank(GasRegistry.getGas("oxygen")));
|
|
|
|
}
|
|
|
|
|
|
|
|
return new ArrayList<ItemStack>();
|
2013-08-10 20:52:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Class getGuiClass()
|
|
|
|
{
|
|
|
|
return GuiPurificationChamber.class;
|
|
|
|
}
|
|
|
|
}
|