Organize JEI support a bit better

This commit is contained in:
aidancbrady committed 2017-05-28 21:07:34 -07:00
1 parent 26061f35f7
commit db4fdb8e84
39 files changed
+189 -785

No files matched your search

@@ -8,12 +8,11 @@ import mekanism.common.recipe.inputs.ItemStackInput;
import mekanism.common.recipe.machines.ChanceMachineRecipe;
import mekanism.common.recipe.outputs.ChanceOutput;
import mezz.jei.api.ingredients.IIngredients;
import mezz.jei.api.recipe.BlankRecipeWrapper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.item.ItemStack;
public class ChanceMachineRecipeWrapper extends BlankRecipeWrapper
public class ChanceMachineRecipeWrapper extends BaseRecipeWrapper
{
public ChanceMachineRecipe recipe;
@@ -44,4 +43,10 @@ public class ChanceMachineRecipeWrapper extends BlankRecipeWrapper
fontRendererObj.drawString(Math.round(output.secondaryChance*100) + "%", 104, 41, 0x404040, false);
}
}
@Override
public ChanceMachineRecipeCategory getCategory()
{
return category;
}
}