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.
import mods.create.MixingManager;
Description
Implements
MixingManager
implements the following interfaces:
IProcessingRecipeManager<MixingRecipe>
,IRecipeManager<ProcessingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
// 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: string
Type: string
- The name of the recipe. outputs: Percentaged<IItemStack>[]
Type: Percentaged<IItemStack>[]
- The output ItemStacks of the recipe. fluidInputs: FluidIngredient[]
(optional) Type: FluidIngredient[]
- The optional fluid inputs of the recipe.
Default Value: [] as crafttweaker.api.fluid.FluidIngredient[]
duration: int
(optional) Type: int
- The duration of the recipe in ticks.
Default Value: 100
// 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: string
Type: string
- The name of the recipe. fluidInputs: FluidIngredient[]
(optional) Type: FluidIngredient[]
- The optional fluid inputs of the recipe.
Default Value: [] as crafttweaker.api.fluid.FluidIngredient[]
duration: int
(optional) Type: int
- The duration of the recipe in ticks.
Default Value: 100
// MixingManager.commandString as string<recipetype:create:mixing>.commandString
Return Type:
string
// MixingManager.commandString() as string;<recipetype:create:mixing>.commandString();
Return Type:
string
<recipetype:create:mixing>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
<recipetype:create:mixing>.recipeMap
Return Type:
Recipe[ResourceLocation]
// MixingManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);<recipetype:create:mixing>.registerRecipe(myString, myConsumer);
Parameters:
name: string
Type: string
- The name of the recipe. recipeBuilder: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void
Type: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void
- The recipe builder. <recipetype:create:mixing>.remove(<fluid:minecraft:water>);
Parameters:
<recipetype:create:mixing>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
// MixingManager.removeAll();<recipetype:create:mixing>.removeAll();
<recipetype:create:mixing>.removeByInput(myIItemStack);
Parameters:
input: IItemStack
Type: IItemStack
// 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: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
// MixingManager.removeByName(names as string[]);<recipetype:create:mixing>.removeByName(myString[]);
Parameters:
names: string[]
Type: string[]
// 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: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false