mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Organize JEI support a bit better
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user