use of moriyashiine.bewitchment.common.recipe.RitualRecipe in project bewitchment by MoriyaShiine.
the class RitualProcessor method setup.
@Override
public void setup(IVariableProvider variables) {
String recipeId = variables.get("recipe").asString();
RecipeManager manager = MinecraftClient.getInstance().world.getRecipeManager();
recipe = (RitualRecipe) manager.get(new Identifier(recipeId)).filter(recipe -> recipe.getType().equals(BWRecipeTypes.RITUAL_RECIPE_TYPE)).orElseThrow(IllegalArgumentException::new);
}
Aggregations