#Recipe Category JEI
10 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
This is the JEIRuntime API:
https://github.com/mezz/JustEnoughItems/blob/1.20/CommonApi/src/main/java/mezz/jei/api/runtime/IJeiRuntime.java
Going from there to:
https://github.com/mezz/JustEnoughItems/blob/1.20/CommonApi/src/main/java/mezz/jei/api/recipe/IRecipeManager.java
And then within there you have:
https://github.com/mezz/JustEnoughItems/blob/404514ad2e11919fde84fb784aa7ed3b758cec63/CommonApi/src/main/java/mezz/jei/api/recipe/IRecipeManager.java#L97
So combining that together:
function hideRecipeCategory(recipeTypeID) {
const {recipeManager} = global.jeiRuntime;
const optionalRecipeType = recipeManager.getRecipeType(recipeTypeID);
if (optionalRecipeType.isEmpty()) {
console.error("Unable to hide recipe category that does note exist: " + recipeTypeID);
return;
}
recipeManager.hideRecipeCategory(optionalRecipeType.get());
}
// IDK the category ids, but this is the syntax you could use.
hideRecipeCategory("minecraft:shapeless");
awesome! works perfectly! THANKS!
Ticket re-opened!
is there a way to hide the assembler in a similar fashion?
I believe those are called catalysts, and yes there is a way to hide them iirc
I have read, it hides the catalyst when i just hide the “item” in jei, just that this is a multiblock. No idea yet how to do that