Class RecipeUtil
java.lang.Object
com.blamejared.crafttweaker.api.util.RecipeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.crafting.ShapedRecipePatterncreatePattern(IIngredient[][] ingredients) static net.minecraft.world.item.crafting.ShapedRecipePatterncreatePattern(net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> flatIngredients, int width, int height) static IIngredient[][]dissolvePattern(String[] pattern, Map<String, IIngredient> keys, int width, int height) static List<IIngredient> flatten(IIngredient[][] ingredients, int width, int height) static IIngredient[][]inflate(List<IIngredient> flattened, int width, int height)
-
Constructor Details
-
RecipeUtil
public RecipeUtil()
-
-
Method Details
-
inflate
-
flatten
-
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)
-