MixingManager

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import mods.create.MixingManager;

Description

Implements

MixingManager implements the following interfaces:

IProcessingRecipeManager<MixingRecipe>,IRecipeManager<ProcessingRecipe>,CommandStringDisplayable

Undocumented Interfaces

Iterable<Recipe>

Members

addJsonRecipe(name as string, mapData as MapData)
script.zs
// MixingManager.addJsonRecipe(name as string, mapData as MapData);
<recipetype:create:mixing>.addJsonRecipe(myString, myMapData);

Parameters:

name Type: string
mapData Type: MapData
addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as CTFluidIngredient[] = [] as crafttweaker.api.fluid.FluidIngredient[], duration as int = 100)
Adds a mixing recipe that outputs ItemStacks.
script.zs
// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as Percentaged<IItemStack>[], itemInputs as IIngredientWithAmount[], fluidInputs as FluidIngredient[] = [] as crafttweaker.api.fluid.FluidIngredient[], duration as int = 100);
<recipetype:create:mixing>.addRecipe("mixed", <constant:create:heat_condition:heated>, [<item:minecraft:diamond> % 50, <item:minecraft:apple>, (<item:minecraft:dirt> * 2) % 12], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);

Parameters:

name Type: string - The name of the recipe.
heat Type: HeatCondition - The required heat of the recipe.
outputs Type: Percentaged<IItemStack>[] - The output ItemStacks of the recipe.
itemInputs Type: IIngredientWithAmount[] - The item inputs of the recipe.
fluidInputs (optional) Type: FluidIngredient[] - The optional fluid inputs of the recipe.

Default Value: [] as crafttweaker.api.fluid.FluidIngredient[]

duration (optional) Type: int - The duration of the recipe in ticks.

Default Value: 100

addRecipe(name as string, heat as HeatCondition, outputs as IFluidStack[], itemInputs as IIngredientWithAmount[], fluidInputs as CTFluidIngredient[] = [] as crafttweaker.api.fluid.FluidIngredient[], duration as int = 100)
Adds a mixing recipe that outputs FluidStacks.
script.zs
// MixingManager.addRecipe(name as string, heat as HeatCondition, outputs as IFluidStack[], itemInputs as IIngredientWithAmount[], fluidInputs as FluidIngredient[] = [] as crafttweaker.api.fluid.FluidIngredient[], duration as int = 100);
<recipetype:create:mixing>.addRecipe("fluid_mixed", <constant:create:heat_condition:none>, [<fluid:minecraft:water> * 200], [<item:minecraft:glass> * 2], [<fluid:minecraft:water> * 250], 200);

Parameters:

name Type: string - The name of the recipe.
heat Type: HeatCondition - The required heat of the recipe.
outputs Type: IFluidStack[] - The output FluidStacks of the recipe.
itemInputs Type: IIngredientWithAmount[] - The item inputs of the recipe.
fluidInputs (optional) Type: FluidIngredient[] - The optional fluid inputs of the recipe.

Default Value: [] as crafttweaker.api.fluid.FluidIngredient[]

duration (optional) Type: int - The duration of the recipe in ticks.

Default Value: 100

Getter
script.zs
// MixingManager.allRecipes as List<Recipe>
<recipetype:create:mixing>.allRecipes

Return Type: List<Recipe>

allRecipes() as List<Recipe>
script.zs
// MixingManager.allRecipes() as List<Recipe>;
<recipetype:create:mixing>.allRecipes();

Return Type: List<Recipe>

Getter
script.zs
// MixingManager.commandString as string
<recipetype:create:mixing>.commandString

Return Type: string

commandString() as string
script.zs
// MixingManager.commandString() as string;
<recipetype:create:mixing>.commandString();

Return Type: string

getRecipeByName(name as string) as Recipe
script.zs
// MixingManager.getRecipeByName(name as string) as Recipe;
<recipetype:create:mixing>.getRecipeByName(myString);

Parameters:

name Type: string

Return Type: Recipe

getRecipesByOutput(output as IIngredient) as List<Recipe>
script.zs
// MixingManager.getRecipesByOutput(output as IIngredient) as List<Recipe>;
<recipetype:create:mixing>.getRecipesByOutput(myIIngredient);

Parameters:

output Type: IIngredient

Return Type: List<Recipe>

Getter
script.zs
// MixingManager.recipeMap as Recipe[ResourceLocation]
<recipetype:create:mixing>.recipeMap

Return Type: Recipe[ResourceLocation]

recipeMap() as Recipe[ResourceLocation]
script.zs
// MixingManager.recipeMap() as Recipe[ResourceLocation];
<recipetype:create:mixing>.recipeMap();

Return Type: Recipe[ResourceLocation]

registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void)
Registers a recipe using a builder approach.
script.zs
// MixingManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);
<recipetype:create:mixing>.registerRecipe(myString, myConsumer);

Parameters:

name Type: string - The name of the recipe.
recipeBuilder Type: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void - The recipe builder.
remove(output as CTFluidIngredient)
Removes recipes based on the output fluid.
script.zs
// MixingManager.remove(output as FluidIngredient);
<recipetype:create:mixing>.remove(<fluid:minecraft:water>);

Parameters:

output Type: FluidIngredient - The output fluid of the recipes to remove.
remove(output as IIngredient)
script.zs
// MixingManager.remove(output as IIngredient);
<recipetype:create:mixing>.remove(myIIngredient);

Parameters:

output Type: IIngredient
removeAll()
script.zs
// MixingManager.removeAll();
<recipetype:create:mixing>.removeAll();
removeByInput(input as IItemStack)
script.zs
// MixingManager.removeByInput(input as IItemStack);
<recipetype:create:mixing>.removeByInput(myIItemStack);

Parameters:

input Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
script.zs
// MixingManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);
<recipetype:create:mixing>.removeByModid(myString, myPredicate);

Parameters:

modid Type: string
exclude (optional) Type: function(t as string) as bool

Default Value: (name as string) as bool => false

removeByName(names as string[])
script.zs
// MixingManager.removeByName(names as string[]);
<recipetype:create:mixing>.removeByName(myString[]);

Parameters:

names Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
script.zs
// MixingManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);
<recipetype:create:mixing>.removeByRegex(myString, myPredicate);

Parameters:

regex Type: string
exclude (optional) Type: function(t as string) as bool

Default Value: (name as string) as bool => false