public final class MCRecipeManager
extends java.lang.Object
implements crafttweaker.api.recipes.IRecipeManager
Modifier and Type | Class and Description |
---|---|
static class |
MCRecipeManager.ActionAddShapedRecipe |
static class |
MCRecipeManager.ActionAddShapelessRecipe |
static class |
MCRecipeManager.ActionBaseAddRecipe
Classes for all addRecipe Actions
|
static class |
MCRecipeManager.ActionBaseRemoveRecipes
Classes of all removeRecipe Actions
|
static class |
MCRecipeManager.ActionRemoveAllRecipes |
static class |
MCRecipeManager.ActionRemoveRecipeByRecipeName |
static class |
MCRecipeManager.ActionRemoveRecipeByRegex |
static class |
MCRecipeManager.ActionRemoveRecipesNoIngredients |
static class |
MCRecipeManager.ActionRemoveShapedRecipes |
static class |
MCRecipeManager.ActionRemoveShapelessRecipes |
Modifier and Type | Field and Description |
---|---|
static MCRecipeManager.ActionRemoveRecipesNoIngredients |
actionRemoveRecipesNoIngredients |
static java.util.Set<java.util.Map.Entry<net.minecraft.util.ResourceLocation,net.minecraft.item.crafting.IRecipe>> |
recipes |
static java.util.List<MCRecipeManager.ActionBaseAddRecipe> |
recipesToAdd |
static java.util.List<MCRecipeManager.ActionBaseRemoveRecipes> |
recipesToRemove |
static java.util.List<crafttweaker.api.recipes.ICraftingRecipe> |
transformerRecipes |
Constructor and Description |
---|
MCRecipeManager() |
Modifier and Type | Method and Description |
---|---|
void |
addShaped(crafttweaker.api.item.IItemStack output,
crafttweaker.api.item.IIngredient[][] ingredients,
crafttweaker.api.recipes.IRecipeFunction function,
crafttweaker.api.recipes.IRecipeAction action) |
void |
addShaped(java.lang.String name,
crafttweaker.api.item.IItemStack output,
crafttweaker.api.item.IIngredient[][] ingredients,
crafttweaker.api.recipes.IRecipeFunction function,
crafttweaker.api.recipes.IRecipeAction action) |
void |
addShapedMirrored(crafttweaker.api.item.IItemStack output,
crafttweaker.api.item.IIngredient[][] ingredients,
crafttweaker.api.recipes.IRecipeFunction function,
crafttweaker.api.recipes.IRecipeAction action) |
void |
addShapedMirrored(java.lang.String name,
crafttweaker.api.item.IItemStack output,
crafttweaker.api.item.IIngredient[][] ingredients,
crafttweaker.api.recipes.IRecipeFunction function,
crafttweaker.api.recipes.IRecipeAction action) |
void |
addShapeless(crafttweaker.api.item.IItemStack output,
crafttweaker.api.item.IIngredient[] ingredients,
crafttweaker.api.recipes.IRecipeFunction function,
crafttweaker.api.recipes.IRecipeAction action) |
void |
addShapeless(java.lang.String name,
crafttweaker.api.item.IItemStack output,
crafttweaker.api.item.IIngredient[] ingredients,
crafttweaker.api.recipes.IRecipeFunction function,
crafttweaker.api.recipes.IRecipeAction action) |
void |
applyTransformations(crafttweaker.api.recipes.ICraftingInventory inventory,
crafttweaker.api.player.IPlayer byPlayer) |
static java.lang.String |
cleanRecipeName(java.lang.String s) |
crafttweaker.api.item.IItemStack |
craft(crafttweaker.api.item.IItemStack[][] contents) |
java.util.List<crafttweaker.api.recipes.ICraftingRecipe> |
getAll() |
java.util.List<crafttweaker.api.recipes.ICraftingRecipe> |
getRecipesFor(crafttweaker.api.item.IIngredient ingredient) |
boolean |
hasTransformerRecipes() |
void |
remove(crafttweaker.api.item.IIngredient output,
boolean nbtMatch) |
void |
removeAll() |
void |
removeByRecipeName(java.lang.String recipeName) |
void |
removeByRegex(java.lang.String regexString) |
void |
removeShaped(crafttweaker.api.item.IIngredient output,
crafttweaker.api.item.IIngredient[][] ingredients) |
void |
removeShapeless(crafttweaker.api.item.IIngredient output,
crafttweaker.api.item.IIngredient[] ingredients,
boolean wildcard) |
static java.lang.String |
saveToString(crafttweaker.api.item.IIngredient ingredient) |
public static java.util.Set<java.util.Map.Entry<net.minecraft.util.ResourceLocation,net.minecraft.item.crafting.IRecipe>> recipes
public static final java.util.List<MCRecipeManager.ActionBaseAddRecipe> recipesToAdd
public static final java.util.List<MCRecipeManager.ActionBaseRemoveRecipes> recipesToRemove
public static final MCRecipeManager.ActionRemoveRecipesNoIngredients actionRemoveRecipesNoIngredients
public static java.util.List<crafttweaker.api.recipes.ICraftingRecipe> transformerRecipes
public boolean hasTransformerRecipes()
public void applyTransformations(crafttweaker.api.recipes.ICraftingInventory inventory, crafttweaker.api.player.IPlayer byPlayer)
public java.util.List<crafttweaker.api.recipes.ICraftingRecipe> getRecipesFor(crafttweaker.api.item.IIngredient ingredient)
getRecipesFor
in interface crafttweaker.api.recipes.IRecipeManager
public java.util.List<crafttweaker.api.recipes.ICraftingRecipe> getAll()
getAll
in interface crafttweaker.api.recipes.IRecipeManager
public void addShaped(crafttweaker.api.item.IItemStack output, crafttweaker.api.item.IIngredient[][] ingredients, crafttweaker.api.recipes.IRecipeFunction function, crafttweaker.api.recipes.IRecipeAction action)
addShaped
in interface crafttweaker.api.recipes.IRecipeManager
public void addShaped(java.lang.String name, crafttweaker.api.item.IItemStack output, crafttweaker.api.item.IIngredient[][] ingredients, crafttweaker.api.recipes.IRecipeFunction function, crafttweaker.api.recipes.IRecipeAction action)
addShaped
in interface crafttweaker.api.recipes.IRecipeManager
public void addShapedMirrored(crafttweaker.api.item.IItemStack output, crafttweaker.api.item.IIngredient[][] ingredients, crafttweaker.api.recipes.IRecipeFunction function, crafttweaker.api.recipes.IRecipeAction action)
addShapedMirrored
in interface crafttweaker.api.recipes.IRecipeManager
public void addShapedMirrored(java.lang.String name, crafttweaker.api.item.IItemStack output, crafttweaker.api.item.IIngredient[][] ingredients, crafttweaker.api.recipes.IRecipeFunction function, crafttweaker.api.recipes.IRecipeAction action)
addShapedMirrored
in interface crafttweaker.api.recipes.IRecipeManager
public void addShapeless(crafttweaker.api.item.IItemStack output, crafttweaker.api.item.IIngredient[] ingredients, crafttweaker.api.recipes.IRecipeFunction function, crafttweaker.api.recipes.IRecipeAction action)
addShapeless
in interface crafttweaker.api.recipes.IRecipeManager
public void addShapeless(java.lang.String name, crafttweaker.api.item.IItemStack output, crafttweaker.api.item.IIngredient[] ingredients, crafttweaker.api.recipes.IRecipeFunction function, crafttweaker.api.recipes.IRecipeAction action)
addShapeless
in interface crafttweaker.api.recipes.IRecipeManager
public void removeAll()
removeAll
in interface crafttweaker.api.recipes.IRecipeManager
public void remove(crafttweaker.api.item.IIngredient output, boolean nbtMatch)
remove
in interface crafttweaker.api.recipes.IRecipeManager
public void removeByRecipeName(java.lang.String recipeName)
removeByRecipeName
in interface crafttweaker.api.recipes.IRecipeManager
public void removeByRegex(java.lang.String regexString)
removeByRegex
in interface crafttweaker.api.recipes.IRecipeManager
public void removeShaped(crafttweaker.api.item.IIngredient output, crafttweaker.api.item.IIngredient[][] ingredients)
removeShaped
in interface crafttweaker.api.recipes.IRecipeManager
public void removeShapeless(crafttweaker.api.item.IIngredient output, crafttweaker.api.item.IIngredient[] ingredients, boolean wildcard)
removeShapeless
in interface crafttweaker.api.recipes.IRecipeManager
public crafttweaker.api.item.IItemStack craft(crafttweaker.api.item.IItemStack[][] contents)
craft
in interface crafttweaker.api.recipes.IRecipeManager
public static java.lang.String saveToString(crafttweaker.api.item.IIngredient ingredient)
public static java.lang.String cleanRecipeName(java.lang.String s)