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