blob: 126da20a8d73313706e0cf4d17bcbb056a9ceadd [file] [log] [blame] [raw]
package mekanism.client.nei;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import mekanism.api.ListUtils;
import mekanism.api.gas.Gas;
import mekanism.api.gas.GasRegistry;
import mekanism.client.gui.GuiPurificationChamber;
import mekanism.common.recipe.RecipeHandler.Recipe;
import mekanism.common.util.MekanismUtils;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class PurificationChamberRecipeHandler extends AdvancedMachineRecipeHandler
{
@Override
public String getRecipeName()
{
return MekanismUtils.localize("tile.MachineBlock.PurificationChamber.name");
}
@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
public List<ItemStack> getFuelStacks(Gas gasType)
{
if(gasType == GasRegistry.getGas("oxygen"))
{
return ListUtils.asList(new ItemStack(Item.flint), MekanismUtils.getFullGasTank(GasRegistry.getGas("oxygen")));
}
return new ArrayList<ItemStack>();
}
@Override
public Class getGuiClass()
{
return GuiPurificationChamber.class;
}
}