package mekanism.common.tile;
import java.util.Map;
import mekanism.api.gas.Gas;
import mekanism.api.gas.GasRegistry;
import mekanism.api.gas.GasStack;
import mekanism.common.Mekanism;
import mekanism.common.block.BlockMachine.MachineType;
import mekanism.common.recipe.RecipeHandler.Recipe;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
public class TileEntityOsmiumCompressor extends TileEntityAdvancedElectricMachine
{
public TileEntityOsmiumCompressor()
{
super("Compressor.ogg", "OsmiumCompressor", Mekanism.osmiumCompressorUsage, 1, 200, MachineType.OSMIUM_COMPRESSOR.baseEnergy);
}
@Override
public Map getRecipes()
{
return Recipe.OSMIUM_COMPRESSOR.get();
}
@Override
public GasStack getItemGas(ItemStack itemstack)
{
int amount = 0;
for(ItemStack ore : OreDictionary.getOres("ingotOsmium"))
{
if(ore.isItemEqual(itemstack))
{
return new GasStack(GasRegistry.getGas("liquidOsmium"), 200);
}
}
for(ItemStack ore : OreDictionary.getOres("blockOsmium"))
{
if(ore.isItemEqual(itemstack))
{
return new GasStack(GasRegistry.getGas("liquidOsmium"), 1800);
}
}
return null;
}
@Override
public boolean isValidGas(Gas gas)
{
return false;
}
}