CompactingManager
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.CompactingManager;
Description
Implements
CompactingManager
implements the following interfaces:
IProcessingRecipeManager<CompactingRecipe>
,IRecipeManager<ProcessingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
// CompactingManager.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:compacting>.addRecipe("compacted", <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
// CompactingManager.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:compacting>.addRecipe("fluid_compacted", <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
// CompactingManager.commandString as string<recipetype:create:compacting>.commandString
Return Type:
string
// CompactingManager.commandString() as string;<recipetype:create:compacting>.commandString();
Return Type:
string
<recipetype:create:compacting>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
<recipetype:create:compacting>.recipeMap
Return Type:
Recipe[ResourceLocation]
// CompactingManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);<recipetype:create:compacting>.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. IFluidStack
.<recipetype:create:compacting>.remove(<fluid:minecraft:water>);
Parameters:
<recipetype:create:compacting>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
// CompactingManager.removeAll();<recipetype:create:compacting>.removeAll();
<recipetype:create:compacting>.removeByInput(myIItemStack);
Parameters:
input: IItemStack
Type: IItemStack
// CompactingManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:compacting>.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
// CompactingManager.removeByName(names as string[]);<recipetype:create:compacting>.removeByName(myString[]);
Parameters:
names: string[]
Type: string[]
// CompactingManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:compacting>.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