Loads of JEI work- got basic machine and advanced machine stuff mostly working, still need to do chance machines and everything else

This commit is contained in:
aidancbrady committed 2016-05-19 23:22:46 -04:00
1 parent be863a4289
commit bdc071582f
32 files changed
+845 -8

No files matched your search

@@ -0,0 +1,39 @@
package mekanism.client.jei.machine;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Nonnull;
import mekanism.common.recipe.inputs.ItemStackInput;
import mekanism.common.recipe.machines.BasicMachineRecipe;
import mekanism.common.recipe.outputs.ItemStackOutput;
import mezz.jei.api.recipe.BlankRecipeWrapper;
import net.minecraft.item.ItemStack;
public class MachineRecipeWrapper extends BlankRecipeWrapper
{
public BasicMachineRecipe recipe;
public MachineRecipeCategory category;
public MachineRecipeWrapper(BasicMachineRecipe r, MachineRecipeCategory c)
{
recipe = r;
category = c;
}
@Nonnull
@Override
public List<ItemStack> getInputs()
{
return Arrays.asList(((ItemStackInput)recipe.getInput()).ingredient);
}
@Nonnull
@Override
public List<ItemStack> getOutputs()
{
return Arrays.asList(((ItemStackOutput)recipe.getOutput()).output);
}
}