Class RecipeUtil

java.lang.Object
com.blamejared.crafttweaker.api.util.RecipeUtil

public class RecipeUtil extends Object
  • Constructor Details

    • RecipeUtil

      public RecipeUtil()
  • Method Details

    • inflate

      public static IIngredient[][] inflate(List<IIngredient> flattened, int width, int height)
    • flatten

      public static List<IIngredient> flatten(IIngredient[][] ingredients, int width, int height)
    • createPattern

      public static net.minecraft.world.item.crafting.ShapedRecipePattern createPattern(IIngredient[][] ingredients)
    • createPattern

      public static net.minecraft.world.item.crafting.ShapedRecipePattern createPattern(net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> flatIngredients, int width, int height)
    • dissolvePattern

      public static IIngredient[][] dissolvePattern(String[] pattern, Map<String,IIngredient> keys, int width, int height)